perf, x86: Call x86_setup_perfctr() from .hw_config()
authorRobert Richter <robert.richter@amd.com>
Tue, 13 Apr 2010 20:23:12 +0000 (22:23 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 7 May 2010 09:31:00 +0000 (11:31 +0200)
commit9d0fcba67e47ff398a6fa86476d4884d472dc98a
treef8cd48d55b5668f0a8e0b22f0c17d3e9fefc9876
parentc1726f343b3bfc2ee037e191907c632a31903021
perf, x86: Call x86_setup_perfctr() from .hw_config()

The perfctr setup calls are in the corresponding .hw_config()
functions now. This makes it possible to introduce config functions
for other pmu events that are not perfctr specific.

Also, all of a sudden the code looks much nicer.

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