SMP: Fix backward condition in test.

This commit is contained in:
Gregory Nutt 2016-11-23 22:24:14 -06:00
parent 7bec4ffeec
commit 4b0bbf41ca

View File

@ -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);
}