commit | 2f687db3d063423c37bf3b7ec72afc867f30d580 | [log] [tgz] |
---|---|---|
author | jb.qi <jb.qi@mobiletek.cn> | Tue Feb 07 17:02:34 2023 -0800 |
committer | xf.li <xf.li@mobiletek.cn> | Thu Feb 16 05:04:11 2023 -0800 |
tree | 132ec62d82034ad18c268661a3280f0ef09375a3 | |
parent | ba9c28b52e92f3f76593738bff374c781f6997cf [diff] |
[Bugfix][API-766]make RTC and system time same Change-Id: Ic7dc136236dda9979371a78fae9a1ba7d8eed06e
diff --git a/meta/meta-mediatek-mt2735/recipes-lynq/suspend-service/files/autosuspend_wakeup_count.c b/meta/meta-mediatek-mt2735/recipes-lynq/suspend-service/files/autosuspend_wakeup_count.c index d8afc80..46bd3af 100755 --- a/meta/meta-mediatek-mt2735/recipes-lynq/suspend-service/files/autosuspend_wakeup_count.c +++ b/meta/meta-mediatek-mt2735/recipes-lynq/suspend-service/files/autosuspend_wakeup_count.c
@@ -246,7 +246,8 @@ return -1; } - + system("hwclock -w"); + RLOGD("TIME: sys to rtc\n"); lseek(wakeup_count_fd, 0, SEEK_SET); system("echo \"autosuspend:Sys seek\" >/dev/console"); wakeup_count_len = TEMP_FAILURE_RETRY(read(wakeup_count_fd, wakeup_count, @@ -282,11 +283,9 @@ void wakeup_feedback(bool success) { - - char buf[80]; - - + system("hwclock -s"); + RLOGD("TIME: rtc to sys\n"); if (!success) {