Skip to content

Commit

Permalink
[PATCH] Address BUG: using smp_processor_id() in preemptible [0000000…
Browse files Browse the repository at this point in the history
…1] code

This patch fixes a warning in the disable_nonboot_cpus call in
kernel/power/smp.c.

Signed-off by: Nigel Cunningham <[email protected]>

Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Nigel Cunningham authored and Linus Torvalds committed Jul 27, 2005
1 parent 9a14d4c commit bba0e46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/power/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ void disable_nonboot_cpus(void)
}
printk("Error taking cpu %d down: %d\n", cpu, error);
}
BUG_ON(smp_processor_id() != 0);
BUG_ON(raw_smp_processor_id() != 0);
if (error)
panic("cpus not sleeping");
}
Expand Down

0 comments on commit bba0e46

Please sign in to comment.