···5152static int endflag __initdata = 0;5354-#ifdef CONFIG_SMP55/* The performance counters used by NMI_LOCAL_APIC don't trigger when56 * the CPU is idle. To make sure the NMI watchdog really ticks on all57 * CPUs during the test make them busy.58 */59static __init void nmi_cpu_busy(void *data)60{061 local_irq_enable_in_hardirq();62 /* Intentionally don't use cpu_relax here. This is63 to make sure that the performance counter really ticks,···67 care if they get somewhat less cycles. */68 while (endflag == 0)69 mb();70-}71#endif07273static int __init check_nmi_watchdog(void)74{
···5152static int endflag __initdata = 0;53054/* The performance counters used by NMI_LOCAL_APIC don't trigger when55 * the CPU is idle. To make sure the NMI watchdog really ticks on all56 * CPUs during the test make them busy.57 */58static __init void nmi_cpu_busy(void *data)59{60+#ifdef CONFIG_SMP61 local_irq_enable_in_hardirq();62 /* Intentionally don't use cpu_relax here. This is63 to make sure that the performance counter really ticks,···67 care if they get somewhat less cycles. */68 while (endflag == 0)69 mb();070#endif71+}7273static int __init check_nmi_watchdog(void)74{