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> |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
irq_attach.c | ||
irq_chain.c | ||
irq_csection.c | ||
irq_dispatch.c | ||
irq_foreach.c | ||
irq_initialize.c | ||
irq_procfs.c | ||
irq_spinlock.c | ||
irq_unexpectedisr.c | ||
irq.h | ||
Make.defs |