Skip to content
Commit 39a8f3b4 authored by Andy Ross's avatar Andy Ross Committed by Anas Nashif
Browse files

kernel/idle: Replace stolen IRQ lock



The removal of the abort handling also absconded with an IRQ lock that
is required for reliable operation in the idle loop.  Put it back.

Once the idle loop has made a decision to enter idle, any interrupt
that arrives needs to be masked and delivered AFTER the system enters
idle.  Otherwise we run the risk of races where the system accepts and
processes an interrupt that should have prevented idle, but then goes
to sleep anyway having already made the decision.

Signed-off-by: default avatarAndy Ross <andrew.j.ross@intel.com>
parent 098fce35
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment