Skip to content

Commit

Permalink
x86, nmi: fix build
Browse files Browse the repository at this point in the history
fix:

arch/x86/kernel/built-in.o: In function `proc_nmi_enabled':
: undefined reference to `nmi_watchdog_default'
arch/x86/kernel/built-in.o: In function `native_smp_prepare_cpus':
: undefined reference to `nmi_watchdog_default'

Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
mingo@elte.hu authored and Thomas Gleixner committed Jun 5, 2008
1 parent 1a1b1d1 commit 75b9f5d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions arch/x86/kernel/nmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,13 @@ static inline unsigned int get_timer_irqs(int cpu)
#endif
}

#ifdef CONFIG_X86_64
/* Run after command line and cpu_init init, but before all other checks */
void nmi_watchdog_default(void)
{
if (nmi_watchdog != NMI_DEFAULT)
return;
nmi_watchdog = NMI_NONE;
}
#endif

#ifdef CONFIG_SMP
/*
Expand Down

0 comments on commit 75b9f5d

Please sign in to comment.