perf, x86: Move perfctr init code to x86_setup_perfctr()
authorRobert Richter <robert.richter@amd.com>
Tue, 13 Apr 2010 20:23:10 +0000 (22:23 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 7 May 2010 09:30:59 +0000 (11:30 +0200)
commit4261e0e0efd9e04b6c69e0773c3cf4d6f337c416
tree47651cefd3e6c89a7acdc2d16d40cc7d384d3231
parenta0507c84bf47dfd204299774f45fd16da33f0619
perf, x86: Move perfctr init code to x86_setup_perfctr()

Split __hw_perf_event_init() to configure pmu events other than
perfctrs. Perfctr code is moved to a separate function
x86_setup_perfctr(). This and the following patches refactor the code.

Split in multiple patches for better review.

Signed-off-by: Robert Richter <robert.richter@amd.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <1271190201-25705-2-git-send-email-robert.richter@amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/perf_event.c