提交 3127692d 编写于 作者: N Nicholas Piggin 提交者: 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: NNicholas Piggin <npiggin@gmail.com>
Acked-by: NAkshay Adiga <akshay.adiga@linux.vnet.ibm.com>
Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
上级 b87b9cf4
......@@ -651,11 +651,12 @@ static int __init pnv_power9_idle_init(void)
&state->psscr_mask,
state->flags);
if (err) {
state->valid = false;
report_invalid_psscr_val(state->psscr_val, err);
continue;
}
state->valid = true;
if (max_residency_ns < state->residency_ns) {
max_residency_ns = state->residency_ns;
pnv_deepest_stop_psscr_val = state->psscr_val;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册