Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions drivers/cpuidle/cpuidle-apple.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,12 @@ static int apple_cpuidle_probe(struct platform_device *pdev)
/*
* CPU PD writes CYC_OVRD, which is an undefined instruction on
* T8140. Its WFI already lets the hardware power-gate idle
* secondary cores, so expose only the WFI state.
* secondary cores, so both entries must use WFI. Keep index 1:
* the generic s2idle selector skips fallback index 0, otherwise
* tick_freeze() and timekeeping suspension are never reached.
*/
if (of_machine_is_compatible("apple,t8140"))
apple_idle_driver.state_count = STATE_WFI + 1;
apple_idle_driver.states[STATE_PWRDOWN] = apple_idle_driver.states[STATE_WFI];

return cpuidle_register(&apple_idle_driver, NULL);
}
Expand Down