Skip to contentSkip to conversation

i386/x86_64: acpi/sleep.c: kill unused acpi_save_state_disk

PATCH In review Adrian Bunk 2 participants 2 messages Jan 16, 2005 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i386/x86_64: acpi/sleep.c: kill unused acpi_save_state_disk

acpi_save_state_disk does nothing and is completely unused.

Unless some usage is planned in the near future, I'm therefore proposing the patch below to kill it.

diffstat output:

 arch/i386/kernel/acpi/sleep.c   |    9 ---------
 arch/x86_64/kernel/acpi/sleep.c |    9 ---------
 include/asm-i386/acpi.h         |    1 -
 include/asm-i386/suspend.h      |    1 -
 include/asm-x86_64/acpi.h       |    1 -
 include/asm-x86_64/suspend.h    |    1 -
 6 files changed, 22 deletions(-)
include/asm-i386/acpi.h renamed from include/asm-i386/acpi.h.old +0 -1
@@ -174,7 +174,6 @@
 
 /* routines for saving/restoring kernel state */
 extern int acpi_save_state_mem(void);
-extern int acpi_save_state_disk(void);
 extern void acpi_restore_state_mem(void);
 
 extern unsigned long acpi_wakeup_address;
include/asm-i386/suspend.h renamed from include/asm-i386/suspend.h.old +0 -1
@@ -61,5 +61,4 @@
 
 /* routines for saving/restoring kernel state */
 extern int acpi_save_state_mem(void);
-extern int acpi_save_state_disk(void);
 #endif
include/asm-x86_64/acpi.h renamed from include/asm-x86_64/acpi.h.old +0 -1
@@ -153,7 +153,6 @@
 
 /* routines for saving/restoring kernel state */
 extern int acpi_save_state_mem(void);
-extern int acpi_save_state_disk(void);
 extern void acpi_restore_state_mem(void);
 
 extern unsigned long acpi_wakeup_address;
include/asm-x86_64/suspend.h renamed from include/asm-x86_64/suspend.h.old +0 -1
@@ -55,5 +55,4 @@
 
 /* routines for saving/restoring kernel state */
 extern int acpi_save_state_mem(void);
-extern int acpi_save_state_disk(void);
 #endif
arch/i386/kernel/acpi/sleep.c renamed from arch/i386/kernel/acpi/sleep.c.old +0 -9
@@ -47,15 +47,6 @@
 	return 0;
 }
 
-/**
- * acpi_save_state_disk - save kernel state to disk
- *
- */
-int acpi_save_state_disk (void)
-{
-	return 1;
-}
-
 /*
  * acpi_restore_state - undo effects of acpi_save_state_mem
  */
arch/x86_64/kernel/acpi/sleep.c renamed from arch/x86_64/kernel/acpi/sleep.c.old +0 -9
@@ -87,15 +87,6 @@
 	return 0;
 }
 
-/**
- * acpi_save_state_disk - save kernel state to disk
- *
- */
-int acpi_save_state_disk (void)
-{
-	return 1;
-}
-
 /*
  * acpi_restore_state
  */
#1 lore raw

Hi!

Quoted 4 lines

acpi_save_state_disk does nothing and is completely unused.

Unless some usage is planned in the near future, I'm therefore proposing the patch below to kill it.

Good idea.
Pavel

Signature · 2 lines
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!