Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
irq: change this_task to current_task(me)
reason: 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