perf_counter, x86: change and remove pmu initialization checks
authorRobert Richter <robert.richter@amd.com>
Wed, 29 Apr 2009 10:47:20 +0000 (12:47 +0200)
committerIngo Molnar <mingo@elte.hu>
Wed, 29 Apr 2009 12:51:12 +0000 (14:51 +0200)
commit85cf9dba92152bb4edec118b2f4f0be1ae7fdcab
tree0fac17369fe20b2510b19748c70a61af5298c7db
parentd43698918bd46c71d494555fb92195fbea1fcb6c
perf_counter, x86: change and remove pmu initialization checks

Some functions are only called if the pmu was proper initialized. That
initalization checks can be removed. The way to check initialization
changed too. Now, the pointer to the interrupt handler is checked. If
it exists the pmu is initialized. This also removes a static variable
and uses struct x86_pmu as only data source for the check.

[ Impact: simplify code ]

Signed-off-by: Robert Richter <robert.richter@amd.com>
Cc: Paul Mackerras <paulus@samba.org>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <1241002046-8832-24-git-send-email-robert.richter@amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/perf_counter.c
This page took 0.026105 seconds and 5 git commands to generate.