mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
Revert "arch: cxd56xx: Fix the pause handler for SMP"
This reverts commit 55c00ad3d9.
This commit is contained in:
committed by
Abdelatif Guettouche
parent
16436a7fb6
commit
324d3a89ed
@@ -283,7 +283,6 @@ int up_cpu_paused(int cpu)
|
||||
int arm_pause_handler(int irq, void *c, FAR void *arg)
|
||||
{
|
||||
int cpu = up_cpu_index();
|
||||
int ret = OK;
|
||||
|
||||
DPRINTF("cpu%d will be paused \n", cpu);
|
||||
|
||||
@@ -298,21 +297,10 @@ int arm_pause_handler(int irq, void *c, FAR void *arg)
|
||||
|
||||
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();
|
||||
|
||||
ret = up_cpu_paused(cpu);
|
||||
|
||||
leave_critical_section(flags);
|
||||
return up_cpu_paused(cpu);
|
||||
}
|
||||
|
||||
return ret;
|
||||
return OK;
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user