perf/core, x86: Reduce number of CONFIG_X86_LOCAL_APIC macros
authorRobert Richter <robert.richter@amd.com>
Wed, 17 Mar 2010 11:49:10 +0000 (12:49 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 17 Mar 2010 12:06:58 +0000 (13:06 +0100)
commitb27ea29c6267889be255f2217fa7a6106e6a8b04
tree60ae76246aa5a3f64ab3ffd7c846f0aa13ba774a
parent3b0d516463f8deb897a55cb81e9dbbe58a2490ed
perf/core, x86: Reduce number of CONFIG_X86_LOCAL_APIC macros

The function reserve_pmc_hardware() and release_pmc_hardware()
were hard to read. This patch improves readability of the code by
removing most of the CONFIG_X86_LOCAL_APIC macros.

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