clock: update clock_synchronize() to support with time

Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
ligd
2022-01-13 22:01:06 +08:00
committed by Xiang Xiao
parent 0a51f13ca5
commit cb502a869c
9 changed files with 37 additions and 19 deletions
@@ -316,7 +316,7 @@ static void stm32_idlepm(void)
*/
#ifdef CONFIG_RTC
clock_synchronize();
clock_synchronize(NULL);
#endif
}
}
@@ -100,7 +100,7 @@ int stm32_ds1307_init(void)
/* Synchronize the system time to the RTC time */
clock_synchronize();
clock_synchronize(NULL);
/* Now we are initialized */