90clock takes over a second to run on suspend.

Most systems do not need it.  Add NEED_CLOCK_SYNC, and only run hwclock
if it is set.  This should eventually turn into a quirk.
---
 pm/sleep.d/90clock |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/pm/sleep.d/90clock b/pm/sleep.d/90clock
index d824778..5df6e8e 100755
--- a/pm/sleep.d/90clock
+++ b/pm/sleep.d/90clock
@@ -15,6 +15,8 @@ resume_clock()
        /sbin/hwclock --hctosys >/dev/null 2>&1 0<&1
 }
 
+[ "$NEED_CLOCK_SYNC" ] || exit $NA
+
 case "$1" in
        hibernate|suspend) suspend_clock ;;
        thaw|resume) resume_clock ;;
-- 
1.6.0.4

_______________________________________________
Pm-utils mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/pm-utils

Reply via email to