s390: remove broken hibernate / power management support
[linux-2.6-microblaze.git] / arch / s390 / kernel / machine_kexec.c
index cb8b1cc..3a854cb 100644 (file)
@@ -14,7 +14,6 @@
 #include <linux/reboot.h>
 #include <linux/ftrace.h>
 #include <linux/debug_locks.h>
-#include <linux/suspend.h>
 #include <asm/cio.h>
 #include <asm/setup.h>
 #include <asm/pgtable.h>
@@ -38,36 +37,6 @@ extern const unsigned long long relocate_kernel_len;
 
 #ifdef CONFIG_CRASH_DUMP
 
-/*
- * PM notifier callback for kdump
- */
-static int machine_kdump_pm_cb(struct notifier_block *nb, unsigned long action,
-                              void *ptr)
-{
-       switch (action) {
-       case PM_SUSPEND_PREPARE:
-       case PM_HIBERNATION_PREPARE:
-               if (kexec_crash_image)
-                       arch_kexec_unprotect_crashkres();
-               break;
-       case PM_POST_SUSPEND:
-       case PM_POST_HIBERNATION:
-               if (kexec_crash_image)
-                       arch_kexec_protect_crashkres();
-               break;
-       default:
-               return NOTIFY_DONE;
-       }
-       return NOTIFY_OK;
-}
-
-static int __init machine_kdump_pm_init(void)
-{
-       pm_notifier(machine_kdump_pm_cb, 0);
-       return 0;
-}
-arch_initcall(machine_kdump_pm_init);
-
 /*
  * Reset the system, copy boot CPU registers to absolute zero,
  * and jump to the kdump image