mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
sched/sched: Temporarily comment out some bad logic
This commit is contained in:
@@ -79,7 +79,7 @@ FAR struct tcb_s *this_task(void)
|
||||
#else
|
||||
/* Enter a critical section */
|
||||
|
||||
flags = enter_critical_section();
|
||||
//flags = enter_critical_section();
|
||||
#endif
|
||||
|
||||
/* Obtain the TCB which is currently running on this CPU */
|
||||
@@ -91,7 +91,7 @@ FAR struct tcb_s *this_task(void)
|
||||
#ifdef CONFIG_ARCH_GLOBAL_IRQDISABLE
|
||||
up_irq_restore(flags);
|
||||
#else
|
||||
leave_critical_section(flags);
|
||||
//leave_critical_section(flags);
|
||||
#endif
|
||||
return tcb;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user