2004-06-30 12:19:22

by Mikael Pettersson

[permalink] [raw]
Subject: [PATCH][2.6.7-mm4] perfctr update 1/6: fix linkage error

- fix linkage error caused by drivers/perfctr/x86_tests.c
using apic_write() even when !CONFIG_X86_LOCAL_APIC

Signed-off-by: Mikael Pettersson <[email protected]>

--- linux-2.6.7-mm4/drivers/perfctr/x86_tests.c.~1~ 2004-06-29 12:43:27.000000000 +0200
+++ linux-2.6.7-mm4/drivers/perfctr/x86_tests.c 2004-06-29 13:26:26.000000000 +0200
@@ -44,6 +44,11 @@
#define CR4MOV "movl"
#endif

+#ifndef PERFCTR_INTERRUPT_SUPPORT
+#undef apic_write
+#define apic_write(reg,vector) do{}while(0)
+#endif
+
static void __init do_rdpmc(unsigned pmc, unsigned unused2)
{
unsigned i;