arch: cxd56xx: Fix handle_irqreq() in cxd56_cpupause.c

Summary:
- The handle_irqreq() is used for remote IRQ control.
- The logic is called via IPI (Inter-Processor Interrupt)
- And the handler should handle only one request
- However, I noticed that the handler handles up to two requests
- This commit fixes this issue

Impact:
- Affects SMP cases only

Testing:
- Tested with spresense:wifi_smp

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
This commit is contained in:
Masayuki Ishikawa 2020-10-02 08:36:26 +09:00 committed by Alin Jerpelea
parent 2cda47272a
commit 3f461f59ba

View File

@ -149,6 +149,8 @@ static bool handle_irqreq(int cpu)
spin_unlock(&g_cpu_wait[cpu]); spin_unlock(&g_cpu_wait[cpu]);
handled = true; handled = true;
break;
} }
} }