Skip to content

Commit 2cc4452

Browse files
dzickusrhIngo Molnar
authored andcommitted
nmi_watchdog: Fix undefined 'apic' build bug
Ingo provided me a config that fails to compile with: arch/x86/built-in.o: In function `arch_trigger_all_cpu_backtrace': (.text+0x17e78): undefined reference to `apic' make: *** [.tmp_vmlinux1] Error 1 I realized I changed the compile behaviour of the nmi code by not wrapping it with CONFIG_LOCAL_APIC. To fix this I add a compile check for ARCH_HAS_NMI_WATCHDOG around arch_trigger_all_cpu_backtrace. Signed-off-by: Don Zickus <dzickus@redhat.com> Cc: a.p.zijlstra@chello.nl Cc: gorcunov@gmail.com Cc: aris@redhat.com LKML-Reference: <1266548212-24243-1-git-send-email-dzickus@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
1 parent 96ca402 commit 2cc4452

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/x86/kernel/apic/hw_nmi.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ u64 hw_nmi_get_sample_period(void)
9292
return cpu_khz * 1000;
9393
}
9494

95+
#ifdef ARCH_HAS_NMI_WATCHDOG
9596
void arch_trigger_all_cpu_backtrace(void)
9697
{
9798
int i;
@@ -108,6 +109,7 @@ void arch_trigger_all_cpu_backtrace(void)
108109
mdelay(1);
109110
}
110111
}
112+
#endif
111113

112114
/* STUB calls to mimic old nmi_watchdog behaviour */
113115
#if defined(CONFIG_X86_LOCAL_APIC)

0 commit comments

Comments
 (0)