aboutsummaryrefslogtreecommitdiff
path: root/mm/util.c
diff options
context:
space:
mode:
authorRobert Richter <robert.richter@amd.com>2009-04-29 12:47:20 +0200
committerIngo Molnar <mingo@elte.hu>2009-04-29 14:51:12 +0200
commit85cf9dba92152bb4edec118b2f4f0be1ae7fdcab (patch)
tree0fac17369fe20b2510b19748c70a61af5298c7db /mm/util.c
parentd43698918bd46c71d494555fb92195fbea1fcb6c (diff)
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>
Diffstat (limited to 'mm/util.c')
0 files changed, 0 insertions, 0 deletions