sched/sched: Temporarily comment out some bad logic
This commit is contained in:
parent
aaf1079fa7
commit
873ffd13bc
|
@ -79,7 +79,7 @@ FAR struct tcb_s *this_task(void)
|
||||||
#else
|
#else
|
||||||
/* Enter a critical section */
|
/* Enter a critical section */
|
||||||
|
|
||||||
flags = enter_critical_section();
|
//flags = enter_critical_section();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Obtain the TCB which is currently running on this CPU */
|
/* 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
|
#ifdef CONFIG_ARCH_GLOBAL_IRQDISABLE
|
||||||
up_irq_restore(flags);
|
up_irq_restore(flags);
|
||||||
#else
|
#else
|
||||||
leave_critical_section(flags);
|
//leave_critical_section(flags);
|
||||||
#endif
|
#endif
|
||||||
return tcb;
|
return tcb;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue