Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

powernv/cpuidle: Fix idle states all being marked invalid

Commit 9c7b185ab2fe ("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: 9c7b185ab2fe ("powernv/cpuidle: Parse dt idle properties into global structure")
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Acked-by: Akshay Adiga <akshay.adiga@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>

authored by

Nicholas Piggin and committed by
Michael Ellerman
3127692d b87b9cf4

+2 -1
+2 -1
arch/powerpc/platforms/powernv/idle.c
··· 651 651 &state->psscr_mask, 652 652 state->flags); 653 653 if (err) { 654 - state->valid = false; 655 654 report_invalid_psscr_val(state->psscr_val, err); 656 655 continue; 657 656 } 657 + 658 + state->valid = true; 658 659 659 660 if (max_residency_ns < state->residency_ns) { 660 661 max_residency_ns = state->residency_ns;