Skip to content

Commit 68290f8

Browse files
committed
Revert "cpuidle: apple: Do not load on unsupported Apple platforms"
This reverts commit a8b6518.
1 parent ae59b60 commit 68290f8

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

drivers/cpuidle/cpuidle-apple.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,12 @@
66
*/
77

88
#include <linux/init.h>
9-
#include <linux/bitfield.h>
109
#include <linux/cpuidle.h>
1110
#include <linux/cpu_pm.h>
1211
#include <linux/platform_device.h>
1312
#include <linux/of.h>
1413
#include <asm/cpuidle.h>
1514

16-
#define DEEP_WFI_STATE_RETENTION BIT(2) // retains base CPU registers in deep WFI
17-
1815
enum idle_state {
1916
STATE_WFI,
2017
STATE_PWRDOWN,
@@ -149,11 +146,6 @@ static int __init apple_cpuidle_init(void)
149146
if (!of_machine_is_compatible("apple,arm-platform"))
150147
return 0;
151148

152-
if (!FIELD_GET(DEEP_WFI_STATE_RETENTION, read_sysreg(aidr_el1))) {
153-
pr_info("cpuidle-apple: CPU does not retain state in deep WFI\n");
154-
return 0;
155-
}
156-
157149
pdev = platform_device_register_simple("cpuidle-apple", -1, NULL, 0);
158150
if (IS_ERR(pdev)) {
159151
platform_driver_unregister(&apple_cpuidle_driver);

0 commit comments

Comments
 (0)