Broken earlier by me by a x86-64 patch.
The code was optimized away, but the compiler still complained about an
undeclared function.
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
{
unsigned int i;
unsigned int working = 0;
- int timer_broadcast = 0;
- cpumask_t mask = cpumask_of_cpu(pr->id);
#ifdef ARCH_APICTIMER_STOPS_ON_C3
+ int timer_broadcast = 0;
+ cpumask_t mask = cpumask_of_cpu(pr->id);
on_each_cpu(switch_ipi_to_APIC_timer, &mask, 1, 1);
#endif
working++;
}
+#ifdef ARCH_APICTIMER_STOPS_ON_C3
if (timer_broadcast)
on_each_cpu(switch_APIC_timer_to_ipi, &mask, 1, 1);
+#endif
return (working);
}