Skip to content
Commit a2eb78c0 authored by Kalle Kietäväinen's avatar Kalle Kietäväinen Committed by Benjamin Cabé
Browse files

kernel: sched: Fix meta-IRQ preemption tracking for the idle thread



When the PM subsystem is enabled, the idle thread locks the scheduler for
the duration the system is suspended. If a meta-IRQ preempts the idle
thread in this state, the idle thread is tracked in `metairq_preempted`.
However, when returning from the preemption, the idle thread is not removed
from `metairq_preempted`, unlike all the other threads. As a result, the
scheduler keeps running the idle thread even if there are higher priority
threads ready to run.

This change treats the idle thread the same way as all other threads when
returning from a meta-IRQ preemption.

Fixes #64705

Signed-off-by: default avatarKalle Kietäväinen <kalle.kietavainen@silabs.com>
parent 2ca64a34
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment