From f9884afc122ec4c8b10def340f91a7c4cb5fdf2f Mon Sep 17 00:00:00 2001 From: Alex Gonzalez Date: Fri, 13 Nov 2015 16:23:43 +0100 Subject: [PATCH] meta-digi-arm: Remove the RTC pre/post actions in the suspend script. These were historically needed for other platforms. Signed-off-by: Alex Gonzalez --- .../recipes-core/busybox/busybox-1.23.2/suspend | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/meta-digi-dey/recipes-core/busybox/busybox-1.23.2/suspend b/meta-digi-dey/recipes-core/busybox/busybox-1.23.2/suspend index 4eedd53a0..2f0df579a 100755 --- a/meta-digi-dey/recipes-core/busybox/busybox-1.23.2/suspend +++ b/meta-digi-dey/recipes-core/busybox/busybox-1.23.2/suspend @@ -25,18 +25,6 @@ usage() { \n" } -suspend_system_time() { - if [ "$(echo /sys/class/rtc/rtc*)" != "/sys/class/rtc/rtc*" ]; then - hwclock -w - fi -} - -resume_system_time() { - if [ "$(echo /sys/class/rtc/rtc*)" != "/sys/class/rtc/rtc*" ]; then - hwclock -s - fi -} - while getopts "h" c; do case "${c}" in h) usage; exit;; @@ -45,14 +33,12 @@ done if [ -f "${syspower}" ]; then # Pre-suspend actions - suspend_system_time # Suspend the device printf "mem" > ${syspower} sleep .5 # Post-resume actions - resume_system_time else printf "\n[ERROR] File ${syspower} not found\n\n" fi