|
@@ -607,15 +607,15 @@ static void cpuhp_thread_fun(unsigned int cpu)
|
|
bool bringup = st->bringup;
|
|
bool bringup = st->bringup;
|
|
enum cpuhp_state state;
|
|
enum cpuhp_state state;
|
|
|
|
|
|
|
|
+ if (WARN_ON_ONCE(!st->should_run))
|
|
|
|
+ return;
|
|
|
|
+
|
|
/*
|
|
/*
|
|
* ACQUIRE for the cpuhp_should_run() load of ->should_run. Ensures
|
|
* ACQUIRE for the cpuhp_should_run() load of ->should_run. Ensures
|
|
* that if we see ->should_run we also see the rest of the state.
|
|
* that if we see ->should_run we also see the rest of the state.
|
|
*/
|
|
*/
|
|
smp_mb();
|
|
smp_mb();
|
|
|
|
|
|
- if (WARN_ON_ONCE(!st->should_run))
|
|
|
|
- return;
|
|
|
|
-
|
|
|
|
cpuhp_lock_acquire(bringup);
|
|
cpuhp_lock_acquire(bringup);
|
|
|
|
|
|
if (st->single) {
|
|
if (st->single) {
|