[PATCH] swsusp: switch pm_message_t to struct
authorPavel Machek <pavel@ucw.cz>
Sat, 3 Sep 2005 22:56:57 +0000 (15:56 -0700)
committerLinus Torvalds <torvalds@evo.osdl.org>
Mon, 5 Sep 2005 07:06:16 +0000 (00:06 -0700)
commitca078bae813dd46c0f9b102fdfb4a3384641ff48
treee3348f5dcb24159a522941aa2e3ee40bc9e0589b
parent829ca9a30a2ddb727981d80fabdbff2ea86bc9ea
[PATCH] swsusp: switch pm_message_t to struct

This adds type-checking to pm_message_t, so that people can't confuse it
with int or u32.  It also allows us to fix "disk yoyo" during suspend (disk
spinning down/up/down).

[We've tried that before; since that cpufreq problems were fixed and I've
tried make allyes config and fixed resulting damage.]

Signed-off-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Alexander Nyberg <alexn@telia.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
28 files changed:
arch/ppc/syslib/of_device.c
drivers/base/power/resume.c
drivers/base/power/runtime.c
drivers/base/power/suspend.c
drivers/base/power/sysfs.c
drivers/ide/ide.c
drivers/ide/pci/sc1200.c
drivers/ide/ppc/pmac.c
drivers/macintosh/mediabay.c
drivers/macintosh/via-pmu.c
drivers/media/dvb/cinergyT2/cinergyT2.c
drivers/net/irda/vlsi_ir.c
drivers/net/wireless/airo.c
drivers/pci/pci.c
drivers/scsi/mesh.c
drivers/serial/pmac_zilog.c
drivers/usb/core/hub.c
drivers/usb/core/usb.c
drivers/usb/host/ehci-dbg.c
drivers/usb/host/ohci-dbg.c
drivers/usb/host/sl811-hcd.c
drivers/usb/misc/usbtest.c
drivers/video/aty/aty128fb.c
drivers/video/aty/atyfb_base.c
drivers/video/aty/radeon_pm.c
drivers/video/chipsfb.c
drivers/video/i810/i810_main.c
include/linux/pm.h