diff options
| author | Xueqin Luo <luoxueqin@kylinos.cn> | 2026-08-27 17:48:19 +0800 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2026-09-11 16:20:00 +0200 |
| commit | d594187cafd5ad65afc5f00242f8fa20e1d8c0f1 (patch) | |
| tree | 96a7cd438817eea17cf3c4c6eb19301851618ff1 /tools/perf/scripts/python | |
| parent | 2094ae12eed8e83dd91a631ac0a582fee5934c36 (diff) | |
cpuidle: menu: Do not return a disabled idle state
When idle state 0 is disabled and the PM QoS latency constraint is
zero (latency_req == 0), the first branch of the || in the early-return
condition of menu_select() is taken immediately, so state 0 is returned
regardless of its disable flag.
Address this by making the !disable check a prerequisite for the entire
early-return condition, so that when state 0 is disabled the normal
state selection loop is used instead, which already skips disabled
states.
Fixes: 53812cdc9100 ("cpuidle: menu: Move the latency_req == 0 special case check")
Signed-off-by: Xueqin Luo <luoxueqin@kylinos.cn>
Link: https://patch.msgid.link/20260827094820.3900062-1-luoxueqin@kylinos.cn
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
