OSDN Git Service

eeepc-laptop: switch to dev_pm_ops
authorCorentin Chary <corentincj@iksaif.net>
Tue, 29 Sep 2009 14:13:11 +0000 (16:13 +0200)
committerCorentin Chary <corentincj@iksaif.net>
Wed, 30 Sep 2009 20:17:46 +0000 (22:17 +0200)
commit36de1f1c8077d9ed2af59bde71ad0b34fa5c0fbe
tree82bf1e566dbe1d3aaf9b51241a98a66c6d4e8b8f
parentd2a24e8d375ab45d7ecdab413dfeb29e4862b4f1
eeepc-laptop: switch to dev_pm_ops

This also involves switching the resume handler from the acpi device
to the platform device.  Using the more fine grained handlers allows
two improvements:

1. We only need to recheck rfkill state after resume from hibernation.

2. The wireless LED workaround accounts for up to 1.1s out of 1.7s
resuming devices (when wireless is enabled).  We can limit the
workaround to thaw(), so that it only delays suspend to disk.

The workaround is only likely to help when hibernation is aborted.
Suspend to ram cannot be aborted by the user.  Device suspend errors may
well happen before eeepc-laptop would even be frozen.  Suspend errors
which happen after that could be pretty funky anyway.

Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
Signed-off-by: Corentin Chary <corentincj@iksaif.net>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/platform/x86/eeepc-laptop.c