summaryrefslogtreecommitdiff
path: root/lib/utils/cppc
diff options
context:
space:
mode:
authorEvgeny Voevodin <[email protected]>2026-05-19 22:50:14 +0000
committerAnup Patel <[email protected]>2026-06-12 18:59:16 +0530
commitb508e6e25eb23a6a188f8cfea94f338c85c75cab (patch)
treea05677e12200df70dc5b291314ac5f87c1413b23 /lib/utils/cppc
parentecc92e87a990e3f45081fbf2c84ad342d9226aaa (diff)
lib: sbi: Apply budget restriction when polling Zkr CSR state transition
Zkr architecture doesn't define a time limit on state transitions which results in hanging on unresponsive or event-driven platforms. To prevent this, we need to limit polling iterations and fall back in case the budget is over, and stack guard keeps its initial value. The budget is configurable with CONFIG_ZKR_POLL_BUDGET, defaulting to 1000 iterations. Successful reads do not consume a try. Signed-off-by: Evgeny Voevodin <[email protected]> Reviewed-by: Anup Patel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Anup Patel <[email protected]>
Diffstat (limited to 'lib/utils/cppc')
0 files changed, 0 insertions, 0 deletions