hermit-os / hermit-rs

Hermit for Rust.
Apache License 2.0
1.66k stars 86 forks source link

add option to use a busy waiting within the idle loop #584

Closed stlankes closed 3 months ago

stlankes commented 3 months ago

Instead of the hlt instruction, the idle loop use the pause instruction.

=> lower latency to wake up the core, but higher energy consumption.

This PR depends on hermit-os/kernel#1243