where is the "z_smp_reacquire_global_lock" called to restore the lock state to whatever the thread's counter?
"曹子龙
Hi folks: throught the docment of zephyr smp imple. a task take the irq_lock can be yield to another thread, but would restore the spinlock own status when it comes back but, throught the code, i just found the code release the global spinlock , but have not seen the reacquire the globbal spin lock when comes back. do_swap: 76 if (!is_spinlock) { 77 z_smp_release_global_lock(new_thread); 78 } so, can anyone show me where is the :z_smp_reacquire_global_lock called ? thank you! 曹子龙 珠海全志科技股份有限公司 BU1-PSW 地址:广东省珠海市高新区唐家湾镇科技2路9号 TEL:13824125580 Email:caozilong@... 网址: http://www.allwinnertech.com
|
|