File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -874,7 +874,6 @@ static void hardpps_update_phase(long error)
874
874
void __hardpps (const struct timespec * phase_ts , const struct timespec * raw_ts )
875
875
{
876
876
struct pps_normtime pts_norm , freq_norm ;
877
- unsigned long flags ;
878
877
879
878
pts_norm = pps_normalize_ts (* phase_ts );
880
879
Original file line number Diff line number Diff line change @@ -975,6 +975,14 @@ static int timekeeping_suspend(void)
975
975
976
976
read_persistent_clock (& timekeeping_suspend_time );
977
977
978
+ /*
979
+ * On some systems the persistent_clock can not be detected at
980
+ * timekeeping_init by its return value, so if we see a valid
981
+ * value returned, update the persistent_clock_exists flag.
982
+ */
983
+ if (timekeeping_suspend_time .tv_sec || timekeeping_suspend_time .tv_nsec )
984
+ persistent_clock_exist = true;
985
+
978
986
raw_spin_lock_irqsave (& timekeeper_lock , flags );
979
987
write_seqcount_begin (& timekeeper_seq );
980
988
timekeeping_forward_now (tk );
You can’t perform that action at this time.
0 commit comments