[riot-notifications] [RIOT-OS/RIOT] core/thread: Allow for inline thread_yield_higher (#15788)

benpicco notifications at github.com
Tue Jan 19 20:42:31 CET 2021


@benpicco commented on this pull request.



> +static inline __attribute__((always_inline)) void thread_yield_higher(void)
+{
+    if (irq_is_in()) {
+        sched_context_switch_request = 1;
+    }
+    else {
+        __asm__("svc 0\n");
+    }
+}

You also want to remove this from `arm7_common/arm_cpu.c` now :wink: 

-- 
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/15788#pullrequestreview-571587125
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210119/c4a8de88/attachment.htm>


More information about the notifications mailing list