]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - kernel/power/hibernate.c
arm64: idmap: Use "awx" flags for .idmap.text .pushsection directives
[mirror_ubuntu-artful-kernel.git] / kernel / power / hibernate.c
index e1914c7b85b180e7683eed48738e14443dbadc62..7859ba79e1813dd8c02b01f6f7826d92977fd758 100644 (file)
@@ -70,7 +70,7 @@ static const struct platform_hibernation_ops *hibernation_ops;
 
 bool hibernation_available(void)
 {
-       return (nohibernate == 0);
+       return nohibernate == 0 && !kernel_is_locked_down();
 }
 
 /**