History

Merge branch 'fortglx/3.9/time' of git://git.linaro.org/people/jstultz/linux into timers/core

Thomas Gleixner committed 13 years ago

Commit 9f4646d2 parents 86c8ead 84e345e3 files · +15 −2Browse files

Showing the changes to kernel/time (1 of 3 files). Show all

Unified · Split

kernel/time/ntp.c+6−2
@@ -511,13 +511,17 @@ static void sync_cmos_clock(struct work_struct *work) · 510 unmodified lines
511 511
512 getnstimeofday(&now);512 getnstimeofday(&now);
513 if (abs(now.tv_nsec - (NSEC_PER_SEC / 2)) <= tick_nsec / 2) {513 if (abs(now.tv_nsec - (NSEC_PER_SEC / 2)) <= tick_nsec / 2) {
514 struct timespec adjust = now;
515
514 fail = -ENODEV;516 fail = -ENODEV;
517 if (persistent_clock_is_local)
518 adjust.tv_sec -= (sys_tz.tz_minuteswest * 60);
515#ifdef CONFIG_GENERIC_CMOS_UPDATE519#ifdef CONFIG_GENERIC_CMOS_UPDATE
516 fail = update_persistent_clock(now);520 fail = update_persistent_clock(adjust);
517#endif521#endif
518#ifdef CONFIG_RTC_SYSTOHC522#ifdef CONFIG_RTC_SYSTOHC
519 if (fail == -ENODEV)523 if (fail == -ENODEV)
520 fail = rtc_set_ntp_time(now);524 fail = rtc_set_ntp_time(adjust);
521#endif525#endif
522 }526 }
523 527