Skip to content

Commit 5b77b7e

Browse files
yuyuyurekajannau
authored andcommitted
cpuidle-apple: only load on machines where it is known to be needed
This handles M4 which no longer has the Apple specific deep WFI mode but the register-based check still reports it as if it has. Attempting to use the code on M4 causes SErrors on attempting to write the s3_5_c15_c5_0 register. Signed-off-by: Yureka <yureka@cyberchaos.dev>
1 parent 68290f8 commit 5b77b7e

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

drivers/cpuidle/cpuidle-apple.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,16 @@ static int __init apple_cpuidle_init(void)
146146
if (!of_machine_is_compatible("apple,arm-platform"))
147147
return 0;
148148

149+
if (!(of_machine_is_compatible("apple,t8103") ||
150+
of_machine_is_compatible("apple,t8112") ||
151+
of_machine_is_compatible("apple,t6000") ||
152+
of_machine_is_compatible("apple,t6001") ||
153+
of_machine_is_compatible("apple,t6002") ||
154+
of_machine_is_compatible("apple,t6020") ||
155+
of_machine_is_compatible("apple,t6021") ||
156+
of_machine_is_compatible("apple,t6022")))
157+
return 0;
158+
149159
pdev = platform_device_register_simple("cpuidle-apple", -1, NULL, 0);
150160
if (IS_ERR(pdev)) {
151161
platform_driver_unregister(&apple_cpuidle_driver);

0 commit comments

Comments
 (0)