Skip to content

Commit 67dd331

Browse files
committed
Merge branch 'fortglx/3.10/time' of git://git.linaro.org/people/jstultz/linux into timers/urgent
2 parents 15ef029 + 0d6bd99 commit 67dd331

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

kernel/time/ntp.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,6 @@ static void hardpps_update_phase(long error)
874874
void __hardpps(const struct timespec *phase_ts, const struct timespec *raw_ts)
875875
{
876876
struct pps_normtime pts_norm, freq_norm;
877-
unsigned long flags;
878877

879878
pts_norm = pps_normalize_ts(*phase_ts);
880879

kernel/time/timekeeping.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -975,6 +975,14 @@ static int timekeeping_suspend(void)
975975

976976
read_persistent_clock(&timekeeping_suspend_time);
977977

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+
978986
raw_spin_lock_irqsave(&timekeeper_lock, flags);
979987
write_seqcount_begin(&timekeeper_seq);
980988
timekeeping_forward_now(tk);

0 commit comments

Comments
 (0)