Skip to content
Snippets Groups Projects
Commit 00b4c907 authored by Russell King's avatar Russell King Committed by Russell King
Browse files

[ARM SMP] Use event instructions for spinlocks


ARMv6K CPUs have SEV (send event) and WFE (wait for event) instructions
which allow the CPU clock to be suspended until another CPU issues a
SEV, rather than spinning on the lock wasting power.  Make use of these
instructions.

Note that WFE does not wait if an event has been sent since the last WFE
cleared the event status, so although it may look racy, the instruction
implementation ensures that these are dealt with.

Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent df2f5e72
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment