Skip to content
Commit 85b8ae9b authored by Peter Mitsis's avatar Peter Mitsis Committed by Henrik Brix Andersen
Browse files

arch: xtensa: Fix arch_is_in_isr() race condition



Fixes a flaw in the the xtensa implementation of arch_is_in_isr()
that could manifest on SMP systems. If the reading of the current
CPU's nested interrupt count is not fully atomic on an SMP system,
then an ill-timed context switch could occur leaving the caller
reading the nested interrupt of a different CPU.

Signed-off-by: default avatarPeter Mitsis <peter.mitsis@intel.com>
parent 4e2b0cdf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment