* as published by the Free Software Foundation; either version
* 2 of the License, or (at your option) any later version.
*/
+#include <linux/config.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/smp.h>
if (num_online_cpus() < 2)
return;
- for_each_online_cpu(i) {
+ for (i = 0; i < NR_CPUS; i++) {
+ if (!cpu_online(i))
+ continue;
if (target == MSG_ALL
|| (target == MSG_ALL_BUT_SELF && i != smp_processor_id())
|| target == i) {
static struct irqaction psurge_irqaction = {
.handler = psurge_primary_intr,
- .flags = IRQF_DISABLED,
+ .flags = SA_INTERRUPT,
.mask = CPU_MASK_NONE,
.name = "primary IPI",
};