Skip to content

Commit

Permalink
Revert "arch: lc823450: Fix the pause handler for SMP"
Browse files Browse the repository at this point in the history
This reverts commit 42dea9e.
  • Loading branch information
masayuki2009 authored and xiaoxiang781216 committed Nov 25, 2020
1 parent 737ca80 commit cfeef48
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions arch/arm/src/lc823450/lc823450_cpupause.c
Expand Up @@ -190,7 +190,6 @@ int up_cpu_paused(int cpu)
int lc823450_pause_handler(int irq, void *c, FAR void *arg)
{
int cpu = up_cpu_index();
int ret = OK;

/* Clear : Pause IRQ */

Expand All @@ -212,21 +211,10 @@ int lc823450_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;
}

/****************************************************************************
Expand Down

0 comments on commit cfeef48

Please sign in to comment.