summaryrefslogtreecommitdiff
path: root/py/objlist.c
diff options
context:
space:
mode:
authorJim Mussared <jim.mussared@gmail.com>2022-06-29 14:40:41 +1000
committerDamien George <damien@micropython.org>2022-07-12 16:17:19 +1000
commitdaff597753e699bb9f485e69dea98f58b0c1432d (patch)
treec1d62ee1d94f64e4bb999137b9143f2e1cc57b3a /py/objlist.c
parent158f1794e87e7860f500622762ec14403ac32f03 (diff)
rp2: Run USB stack task exclusively from core 0.
The goal is to avoid a situation where core 1 is shut down while holding the tinyusb spinlock, which could happen during soft reset if mp_thread_deinit is called while core1 is running tud_task(). This also fixes a latent race where the two cores are competing to decrement and compare `vm_hook_divisor` with no mem fence or atomic protection -- only core0 will now do this. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Diffstat (limited to 'py/objlist.c')
0 files changed, 0 insertions, 0 deletions