Revert "arch: xtensa: Fix the pause handler for SMP"
This reverts commit 1914aac05f
.
This commit is contained in:
parent
6b767c6856
commit
b237748f50
@ -192,18 +192,7 @@ void xtensa_pause_handler(void)
|
||||
|
||||
if (spin_islocked(&g_cpu_paused[cpu]))
|
||||
{
|
||||
/* NOTE: up_cpu_paused() needs to be executed in a critical section
|
||||
* to ensure that this CPU holds g_cpu_irqlock. However, adding
|
||||
* a critical section in up_cpu_paused() is not a good idea,
|
||||
* because it is also called in enter_critical_section() to break
|
||||
* a deadlock
|
||||
*/
|
||||
|
||||
irqstate_t flags = enter_critical_section();
|
||||
|
||||
up_cpu_paused(cpu);
|
||||
|
||||
leave_critical_section(flags);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user