xtensa: fix booting secondary cores on the dummy thread
When secondary cores are booted, they use the dummy thread and the IRQ stack until they switch over to a real thread. Therefore dummy threads shouldn't be skipped when cohering outgoing thread stack, only threads with zero stack size should be skipped. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
This commit is contained in:
parent
77e59f2444
commit
29abc8adc0
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ static ALWAYS_INLINE void arch_cohere_stacks(struct k_thread *old_thread,
|
|||
/* Dummy threads appear at system initialization, but don't
|
||||
* have stack_info data and will never be saved. Ignore.
|
||||
*/
|
||||
if (old_thread->base.thread_state & _THREAD_DUMMY) {
|
||||
if (!osz) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue