mirror of
https://github.com/apache/nuttx.git
synced 2026-08-14 00:43:13 +00:00
sched/sched: Fix a typo in the previous commit
This commit is contained in:
parent
c8a372702a
commit
aaf1079fa7
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue