7db6632ab3
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 <hujun5@xiaomi.com> |
||
---|---|---|
.. | ||
addrenv | ||
clock | ||
environ | ||
group | ||
init | ||
instrument | ||
irq | ||
misc | ||
module | ||
mqueue | ||
paging | ||
pthread | ||
sched | ||
semaphore | ||
signal | ||
task | ||
timer | ||
tls | ||
wdog | ||
wqueue | ||
CMakeLists.txt | ||
Kconfig | ||
Makefile |