x86, perf: Use apic_write unconditionally
authorCyrill Gorcunov <gorcunov@openvz.org>
Wed, 17 Mar 2010 10:37:01 +0000 (13:37 +0300)
committerIngo Molnar <mingo@elte.hu>
Thu, 18 Mar 2010 16:03:22 +0000 (17:03 +0100)
commit7335f75e9ca166044e38a96abad422d8e6e364b5
treeecd34b9a8de260a7863e47bb4fa18e492d1722fe
parentd674cd1963129b70bc5f631c51fb30fb73213fb2
x86, perf: Use apic_write unconditionally

Since apic_write() maps to a plain noop in the !CONFIG_X86_LOCAL_APIC
case we're safe to remove this conditional compilation and clean up
the code a bit.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Cc: fweisbec@gmail.com
Cc: acme@redhat.com
Cc: eranian@google.com
Cc: peterz@infradead.org
LKML-Reference: <20100317104356.232371479@openvz.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/perf_event.c
arch/x86/kernel/cpu/perf_event_p4.c