[riot-notifications] [RIOT-OS/RIOT] tests/isr_thread_yield_higher: test behavior from interrupt (#11759)

Gaƫtan Harter notifications at github.com
Fri Jun 28 17:23:32 CEST 2019


> It is obviously a common pattern to check if in isr, maybe yield, maybe set "sched_yield_higher". But the isr check is not necessary in all cases. And we should avoid wasting cycles at this level

It is currently checked everytime for `atmega_common`, `esp32`, `esp8266`.
`native` also has a special handling, but `native` is special.

https://github.com/RIOT-OS/RIOT/blob/50ea0d822c683d7d39f21fb25d317b0b2e738bb3/cpu/atmega_common/thread_arch.c#L238-L249

https://github.com/RIOT-OS/RIOT/blob/50ea0d822c683d7d39f21fb25d317b0b2e738bb3/cpu/esp32/thread_arch.c#L212-L258

https://github.com/RIOT-OS/RIOT/blob/50ea0d822c683d7d39f21fb25d317b0b2e738bb3/cpu/esp8266/thread_arch.c#L206-L240

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/11759#issuecomment-506774088
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190628/54af3471/attachment.html>


More information about the notifications mailing list