mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-30 00:41:17 +01:00
This fixes https://github.com/RIOT-OS/RIOT/issues/18545 as the code previously relied on `sched_change_priority()` not directly scheduling a new thread while IRQs are disabled, but rather later when IRQs are restored. This is true for Cortex-M MCUs (where the PendSV IRQ is used to trigger the scheduler), but not e.g. for AVR.