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

kernel/z_swap: Remove on-stack dummy spinlock



The z_swap_unlocked() function used a dummy spinlock for simplicity.
But this runs afouls of checking for stack-resident spinlocks
(forbidden when KERNEL_COHERENCE is set).  And it's executing needless
code to release the lock anyway.  Replace with a compile time NULL,
which will improve performance, correctness and code size.

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