perf_counter, x86: rework counter enable functions
authorRobert Richter <robert.richter@amd.com>
Wed, 29 Apr 2009 10:47:18 +0000 (12:47 +0200)
committerIngo Molnar <mingo@elte.hu>
Wed, 29 Apr 2009 12:51:11 +0000 (14:51 +0200)
commit7c90cc45f89af4dd4617f97d452740ad95b800d5
tree51c76b2fbe59ddcde31098a83a57fef085764f92
parent6f00cada07bb5da7f751929d3173494dcc5446cc
perf_counter, x86: rework counter enable functions

There is vendor specific code in generic x86 code, and there is vendor
specific code that could be generic. This patch introduces
x86_pmu_enable_counter() for x86 generic code. Fixed counter code for
Intel is moved to Intel only functions. In the end, checks and calls
via function pointers were reduced to the necessary. Also, the
internal function i/f changed.

[ Impact: refactor and generalize 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-22-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.024816 seconds and 5 git commands to generate.