Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sched: irq: Change this_task to current_task(me) in restore_critical_…
…section() this_task() is a function call that involves disabling interrupts and this_cpu(). Since restore_critical_section is always called in an interrupt-disabled context, there's no need to disable interrupts again. Therefore, to save time and achieve the same effect, I directly call tcb = current_task(me) instead of tcb = this_task(). Signed-off-by: hujun5 <[email protected]>
- Loading branch information