SMP: Fix backward condition in test.
This commit is contained in:
parent
7bec4ffeec
commit
4b0bbf41ca
@ -188,10 +188,11 @@ int arm_pause_handler(int irq, FAR void *context)
|
||||
|
||||
/* Check for false alarms. Such false could occur as a consequence of
|
||||
* some deadlock breaking logic that might have already serviced the SG2
|
||||
* interrupt by calling up_cpu_paused.
|
||||
* interrupt by calling up_cpu_paused(). If the pause event has already
|
||||
* been processed with g_cpu_paused[cpu] will not be locked.
|
||||
*/
|
||||
|
||||
if (spin_islocked(&g_cpu_paused[cpu]))
|
||||
if (!spin_islocked(&g_cpu_paused[cpu]))
|
||||
{
|
||||
return up_cpu_paused(cpu);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user