Skip to content

Commit 08f23e1

Browse files
svenpeter42jannau
authored andcommitted
power: hibernate: Disable hibernation on Apple Silicon
Signed-off-by: Sven Peter <sven@kernel.org>
1 parent 96f1ad6 commit 08f23e1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

kernel/power/hibernate.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#include <linux/ktime.h>
3434
#include <linux/security.h>
3535
#include <linux/secretmem.h>
36+
#include <linux/of.h>
3637
#include <trace/events/power.h>
3738

3839
#include "power.h"
@@ -110,7 +111,8 @@ bool hibernation_available(void)
110111
{
111112
return nohibernate == 0 &&
112113
!security_locked_down(LOCKDOWN_HIBERNATION) &&
113-
!secretmem_active() && !cxl_mem_active();
114+
!secretmem_active() && !cxl_mem_active() &&
115+
!of_machine_is_compatible("apple,arm-platform");
114116
}
115117

116118
/**

0 commit comments

Comments
 (0)