Skip to content

Commit

Permalink
Revert "irq: add [enter|leave]_critical_section_nonirq"
Browse files Browse the repository at this point in the history
This reverts commit 1c5a0bf.

Signed-off-by: hujun5 <[email protected]>
  • Loading branch information
hujun260 committed Sep 17, 2024
1 parent 401a06f commit d20ba21
Show file tree
Hide file tree
Showing 7 changed files with 151 additions and 210 deletions.
4 changes: 0 additions & 4 deletions include/nuttx/irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -258,10 +258,8 @@ int irqchain_detach(int irq, xcpt_t isr, FAR void *arg);
****************************************************************************/

#ifdef CONFIG_IRQCOUNT
irqstate_t enter_critical_section_nonirq(void) noinstrument_function;
irqstate_t enter_critical_section(void) noinstrument_function;
#else
# define enter_critical_section_nonirq() up_irq_save()
# define enter_critical_section() up_irq_save()
#endif

Expand Down Expand Up @@ -290,10 +288,8 @@ irqstate_t enter_critical_section(void) noinstrument_function;
****************************************************************************/

#ifdef CONFIG_IRQCOUNT
void leave_critical_section_nonirq(irqstate_t flags) noinstrument_function;
void leave_critical_section(irqstate_t flags) noinstrument_function;
#else
# define leave_critical_section_nonirq(f) up_irq_restore(f)
# define leave_critical_section(f) up_irq_restore(f)
#endif

Expand Down
Loading

0 comments on commit d20ba21

Please sign in to comment.