Commit 3127692d authored by Nicholas Piggin's avatar Nicholas Piggin Committed by Michael Ellerman

powernv/cpuidle: Fix idle states all being marked invalid

Commit 9c7b185a ("powernv/cpuidle: Parse dt idle properties into
global structure") parses dt idle states into structs, but never marks
them valid. This results in all idle states being lost.

Fixes: 9c7b185a ("powernv/cpuidle: Parse dt idle properties into global structure")
Signed-off-by: default avatarNicholas Piggin <npiggin@gmail.com>
Acked-by: default avatarAkshay Adiga <akshay.adiga@linux.vnet.ibm.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent b87b9cf4
...@@ -651,11 +651,12 @@ static int __init pnv_power9_idle_init(void) ...@@ -651,11 +651,12 @@ static int __init pnv_power9_idle_init(void)
&state->psscr_mask, &state->psscr_mask,
state->flags); state->flags);
if (err) { if (err) {
state->valid = false;
report_invalid_psscr_val(state->psscr_val, err); report_invalid_psscr_val(state->psscr_val, err);
continue; continue;
} }
state->valid = true;
if (max_residency_ns < state->residency_ns) { if (max_residency_ns < state->residency_ns) {
max_residency_ns = state->residency_ns; max_residency_ns = state->residency_ns;
pnv_deepest_stop_psscr_val = state->psscr_val; pnv_deepest_stop_psscr_val = state->psscr_val;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment