|
@@ -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;
|