-
- Downloads
PM: Move definition of struct pm_ops to suspend.h
Move the definition of 'struct pm_ops' and related functions from <linux/pm.h> to <linux/suspend.h> . There are, at least, the following reasons to do that: * 'struct pm_ops' is specifically related to suspend and not to the power management in general. * As long as 'struct pm_ops' is defined in <linux/pm.h>, any modification of it causes the entire kernel to be recompiled, which is unnecessary and annoying. * Some suspend-related features are already defined in <linux/suspend.h>, so it is logical to move the definition of 'struct pm_ops' into there. * 'struct hibernation_ops', being the hibernation-related counterpart of 'struct pm_ops', is defined in <linux/suspend.h> . Signed-off-by:Rafael J. Wysocki <rjw@sisk.pl> Acked-by:
Pavel Machek <pavel@ucw.cz> Cc: Len Brown <lenb@kernel.org> Cc: Greg KH <greg@kroah.com> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- arch/arm/common/sharpsl_pm.c 1 addition, 0 deletionsarch/arm/common/sharpsl_pm.c
- arch/arm/mach-at91/pm.c 1 addition, 2 deletionsarch/arm/mach-at91/pm.c
- arch/arm/mach-omap1/pm.c 1 addition, 2 deletionsarch/arm/mach-omap1/pm.c
- arch/arm/mach-omap2/pm.c 1 addition, 8 deletionsarch/arm/mach-omap2/pm.c
- arch/arm/mach-pnx4008/pm.c 1 addition, 1 deletionarch/arm/mach-pnx4008/pm.c
- arch/arm/mach-pxa/pxa25x.c 1 addition, 1 deletionarch/arm/mach-pxa/pxa25x.c
- arch/arm/mach-pxa/pxa27x.c 1 addition, 1 deletionarch/arm/mach-pxa/pxa27x.c
- arch/blackfin/mach-common/pm.c 1 addition, 1 deletionarch/blackfin/mach-common/pm.c
- arch/powerpc/platforms/52xx/mpc52xx_pm.c 1 addition, 1 deletionarch/powerpc/platforms/52xx/mpc52xx_pm.c
- drivers/char/apm-emulation.c 1 addition, 1 deletiondrivers/char/apm-emulation.c
- include/asm-arm/arch-pxa/pm.h 2 additions, 0 deletionsinclude/asm-arm/arch-pxa/pm.h
- include/linux/pm.h 0 additions, 98 deletionsinclude/linux/pm.h
- include/linux/suspend.h 110 additions, 11 deletionsinclude/linux/suspend.h
Loading
Please register or sign in to comment