We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c468154 commit 1307083Copy full SHA for 1307083
kernel/cpu.c
@@ -961,7 +961,7 @@ static int takedown_cpu(unsigned int cpu)
961
int err;
962
963
/* Park the smpboot threads */
964
- kthread_park(per_cpu_ptr(&cpuhp_state, cpu)->thread);
+ kthread_park(st->thread);
965
966
/*
967
* Prevent irq alloc/free while the dying cpu reorganizes the
@@ -977,7 +977,7 @@ static int takedown_cpu(unsigned int cpu)
977
/* CPU refused to die */
978
irq_unlock_sparse();
979
/* Unpark the hotplug thread so we can rollback there */
980
- kthread_unpark(per_cpu_ptr(&cpuhp_state, cpu)->thread);
+ kthread_unpark(st->thread);
981
return err;
982
}
983
BUG_ON(cpu_online(cpu));
0 commit comments