[Pm-utils] [PATCH 5/8] pm-utils 1.2.3 proposed patches
Victor Lowther
victor.lowther at gmail.com
Sat Nov 29 08:51:29 PST 2008
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
More information about the Pm-utils
mailing list