diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2016-07-07 11:50:07 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-07-13 17:13:57 +1000 |
commit | ee8d135aa92de252d3f79034f829e3579e6a122f (patch) | |
tree | c4d644d700a21d648cc15dd4507e65fe50e2c0cb /include | |
parent | 6b216257d3945653352f06f713f019cd6fa88f8c (diff) | |
download | skiboot-ee8d135aa92de252d3f79034f829e3579e6a122f.zip skiboot-ee8d135aa92de252d3f79034f829e3579e6a122f.tar.gz skiboot-ee8d135aa92de252d3f79034f829e3579e6a122f.tar.bz2 |
cpu: Don't call time_wait with lock held
Also make the locking around re-init safer, properly block the
OS from restarting a thread that was caught for re-init.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/cpu.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/cpu.h b/include/cpu.h index 59923d5..62f5629 100644 --- a/include/cpu.h +++ b/include/cpu.h @@ -60,6 +60,7 @@ struct cpu_thread { bool con_need_flush; bool in_mcount; bool in_poller; + bool in_reinit; uint32_t hbrt_spec_wakeup; /* primary only */ uint64_t save_l2_fir_action1; uint64_t current_token; |