Sonicadvance1 / wfe_mutex

MIT License
0 stars 0 forks source link

Arm64: Add low_power option implementation #17

Open Sonicadvance1 opened 1 month ago

Sonicadvance1 commented 1 month ago

Arm64 supports the yield instruction, which would effectively match the spin loop x86 implementation's low_power. Add that to the arm64 path.

Sonicadvance1 commented 1 month ago

https://github.com/rust-lang/rust/commit/c064b6560b7ce0adeb9bbf5d7dcf12b1acb0c807 According to this commit, yield is basically a nop, so probably want to actually use isb sy which puts the CPU in to a lower power state. Good to know.