mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 09:18:00 +08:00
sched/sched: Fix a typo in the previous commit
This commit is contained in:
@@ -72,7 +72,7 @@ FAR struct tcb_s *this_task(void)
|
||||
irqstate_t flags;
|
||||
FAR struct tcb_s *tcb;
|
||||
|
||||
#ifdef CONDIF_ARCH_GLOBAL_IRQDISABLE
|
||||
#ifdef CONFIG_ARCH_GLOBAL_IRQDISABLE
|
||||
/* Disable local interrupts to avoid CPU switching */
|
||||
|
||||
flags = up_irq_save();
|
||||
@@ -88,7 +88,7 @@ FAR struct tcb_s *this_task(void)
|
||||
|
||||
/* Enable local interrupts */
|
||||
|
||||
#ifdef CONDIF_ARCH_GLOBAL_IRQDISABLE
|
||||
#ifdef CONFIG_ARCH_GLOBAL_IRQDISABLE
|
||||
up_irq_restore(flags);
|
||||
#else
|
||||
leave_critical_section(flags);
|
||||
|
||||
Reference in New Issue
Block a user