ACPI / PM: Drop acpi_restore_state_mem()
authorRafael J. Wysocki <rjw@sisk.pl>
Tue, 8 Feb 2011 22:41:35 +0000 (23:41 +0100)
committerRafael J. Wysocki <rjw@sisk.pl>
Thu, 24 Feb 2011 18:58:54 +0000 (19:58 +0100)
The function acpi_restore_state_mem() has never been and most likely
never will be used, so remove it.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
arch/ia64/include/asm/acpi.h
arch/ia64/kernel/acpi.c
arch/x86/include/asm/acpi.h
arch/x86/kernel/acpi/sleep.c
drivers/acpi/sleep.c

index 837dc82a013eb7f93b792bf0d4c713ce1939ba81..db3986a71af8c64bbbfde68cecee3a7d8ad76ec4 100644 (file)
@@ -128,9 +128,9 @@ static inline const char *acpi_get_sysname (void)
 int acpi_request_vector (u32 int_type);
 int acpi_gsi_to_irq (u32 gsi, unsigned int *irq);
 
-/* routines for saving/restoring kernel state */
+/* Routine for saving kernel state during suspend. */
 extern int acpi_save_state_mem(void);
-extern void acpi_restore_state_mem(void);
+
 extern unsigned long acpi_wakeup_address;
 
 /*
index 90ebceb899a0840bd66deae5e9d4446ed027c7f4..7cf2d10c0677a6083a97266102a741cf9a7295a4 100644 (file)
@@ -1040,11 +1040,6 @@ EXPORT_SYMBOL(acpi_unregister_ioapic);
  */
 int acpi_save_state_mem(void) { return 0; } 
 
-/*
- * acpi_restore_state()
- */
-void acpi_restore_state_mem(void) {}
-
 /*
  * do_suspend_lowlevel()
  */
index 211ca3f7fd16f07a313fc4333b563888765519a4..47981f0d121b58306cb9105205e8bdaf1ada65bb 100644 (file)
@@ -112,9 +112,8 @@ static inline void acpi_disable_pci(void)
        acpi_noirq_set();
 }
 
-/* routines for saving/restoring kernel state */
+/* Routine for saving kernel state during suspend. */
 extern int acpi_save_state_mem(void);
-extern void acpi_restore_state_mem(void);
 
 extern unsigned long acpi_wakeup_address;
 
index 68d1537b8c812dbc2cf2f6e2fc60e8ab31f96578..c27a483094b1aeae7192ae480ee0b45327b3fc31 100644 (file)
@@ -110,14 +110,6 @@ int acpi_save_state_mem(void)
        return 0;
 }
 
-/*
- * acpi_restore_state - undo effects of acpi_save_state_mem
- */
-void acpi_restore_state_mem(void)
-{
-}
-
-
 /**
  * acpi_reserve_wakeup_memory - do _very_ early ACPI initialisation
  *
index d6a8cd14de2e824ddb15563aa625fa1d5236ea5a..67dcd3886563251cba8ad113fa0c6cca090bd682 100644 (file)
@@ -293,10 +293,6 @@ static int acpi_suspend_enter(suspend_state_t pm_state)
        local_irq_restore(flags);
        printk(KERN_DEBUG "Back to C!\n");
 
-       /* restore processor state */
-       if (acpi_state == ACPI_STATE_S3)
-               acpi_restore_state_mem();
-
        suspend_nvs_restore();
 
        return ACPI_SUCCESS(status) ? 0 : -EFAULT;
This page took 0.047393 seconds and 5 git commands to generate.