mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
fix bogus hotplug cpu warning
Fix bogus DEBUG_PREEMPT warning on x86_64, when cpu brought online after bootup: current_is_keventd is right to note its use of smp_processor_id is preempt-safe, but should use raw_smp_processor_id to avoid the warning. Signed-off-by: Hugh Dickins <hugh@veritas.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
721ebe005c
commit
d243769d3f
1 changed files with 1 additions and 1 deletions
|
@ -635,7 +635,7 @@ int keventd_up(void)
|
||||||
int current_is_keventd(void)
|
int current_is_keventd(void)
|
||||||
{
|
{
|
||||||
struct cpu_workqueue_struct *cwq;
|
struct cpu_workqueue_struct *cwq;
|
||||||
int cpu = smp_processor_id(); /* preempt-safe: keventd is per-cpu */
|
int cpu = raw_smp_processor_id(); /* preempt-safe: keventd is per-cpu */
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
BUG_ON(!keventd_wq);
|
BUG_ON(!keventd_wq);
|
||||||
|
|
Loading…
Reference in a new issue