This website requires JavaScript.
Explore
Help
Register
Sign In
sergiotarxz
/
nuttx
Watch
1
Star
0
Fork
0
You've already forked nuttx
Code
Issues
Pull Requests
Releases
Wiki
Activity
fb50c44d08
nuttx
/
arch
/
arm
History
Masayuki Ishikawa
c8a372702a
sched/sched: SMP: Fix this_task() to be an atomic operation. In the previous implementation, this_task() was defined in sched.h by using just a macro current_task(this_cpu()). However, I found that this is not atomic and actually sometimes switching CPU happened in executing the macro when we tested audio steaming plus executing commands via telnet. This change resolves this issue by implementing atomic this_task()in sched_thistask.c which is newly introduced.
2018-02-04 16:59:09 -06:00
..
include
armv7-a, armv7-r, armv7-m: Add atomic read-add-write and read-subtract-write functions.
2018-02-04 12:22:03 -06:00
src
sched/sched: SMP: Fix this_task() to be an atomic operation. In the previous implementation, this_task() was defined in sched.h by using just a macro current_task(this_cpu()). However, I found that this is not atomic and actually sometimes switching CPU happened in executing the macro when we tested audio steaming plus executing commands via telnet. This change resolves this issue by implementing atomic this_task()in sched_thistask.c which is newly introduced.
2018-02-04 16:59:09 -06:00
Kconfig
spin_lock_irqsave() and spin_unlock_irqrestore() are only valid if the CPU supports global disabling of interrupts.
2018-02-04 15:41:22 -06:00