apm-emulation: add hibernation APM events to support suspend2disk
authorBin Shi <Bin.Shi@csr.com>
Fri, 3 Jan 2014 06:08:54 +0000 (14:08 +0800)
committerJiri Kosina <jkosina@suse.cz>
Tue, 7 Jan 2014 12:50:28 +0000 (13:50 +0100)
commit158204397034f088bfd505eeee281f7072da1c24
treebd97dcca3c13c7ebf58c252b76ca1df9e16f4254
parent5e01dc7b26d9f24f39abace5da98ccbd6a5ceb52
apm-emulation: add hibernation APM events to support suspend2disk

Some embedded systems use hibernation for fast boot. and in it,
some software components need to handle specific things before
hibernation and after restore. So it needs to capture the apm
status about these pm events.

Currently apm just supports suspend to ram, but not suspend to disk,
so here add logic about hibernation apm events.

Signed-off-by: Bin Shi <Bin.Shi@csr.com>
Signed-off-by: Barry Song <Baohua.Song@csr.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/char/apm-emulation.c
include/uapi/linux/apm_bios.h