cpu: idle detection/park as a selectable feature (idle-pause, off by default)#30
Merged
Merged
Conversation
…y default) The guest-idle-loop detection that sleeps the CPU thread instead of spinning the host core is now behind the `idle-pause` cargo feature rather than always compiled in. Off by default (CPU spins; simplest for deterministic-clock and raw-benchmark builds); opt in with --features idle-pause. When compiled in, the IRIS_NO_IDLE env var still disables it at runtime. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Puts the guest-idle-loop detection that sleeps the CPU thread (instead of spinning the host core) behind a cargo feature,
idle-pause, rather than always compiling it in.--features idle-pause.IRIS_NO_IDLEenv var still disables it at runtime.#[cfg(feature = "idle-pause")]inmips_exec.rs; no dead code or unused-variable warnings when off.Rebased cleanly onto current main (the
Cargo.tomlfeature-list addition sits alongside the r5k cache features;default = ["tlbvmap"]unchanged).🤖 Generated with Claude Code