diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/ppc/kernel/time.c | 1 | ||||
-rw-r--r-- | arch/ppc/platforms/chrp_time.c | 2 | ||||
-rw-r--r-- | arch/ppc/platforms/gemini_setup.c | 3 |
3 files changed, 0 insertions, 6 deletions
diff --git a/arch/ppc/kernel/time.c b/arch/ppc/kernel/time.c index 50724139402c..b3cee6b01454 100644 --- a/arch/ppc/kernel/time.c +++ b/arch/ppc/kernel/time.c | |||
@@ -272,7 +272,6 @@ int do_settimeofday(struct timespec *tv) | |||
272 | 272 | ||
273 | time_adjust = 0; /* stop active adjtime() */ | 273 | time_adjust = 0; /* stop active adjtime() */ |
274 | time_status |= STA_UNSYNC; | 274 | time_status |= STA_UNSYNC; |
275 | time_state = TIME_ERROR; /* p. 24, (a) */ | ||
276 | time_maxerror = NTP_PHASE_LIMIT; | 275 | time_maxerror = NTP_PHASE_LIMIT; |
277 | time_esterror = NTP_PHASE_LIMIT; | 276 | time_esterror = NTP_PHASE_LIMIT; |
278 | write_sequnlock_irqrestore(&xtime_lock, flags); | 277 | write_sequnlock_irqrestore(&xtime_lock, flags); |
diff --git a/arch/ppc/platforms/chrp_time.c b/arch/ppc/platforms/chrp_time.c index e2be0c838d8a..4864a7de3daa 100644 --- a/arch/ppc/platforms/chrp_time.c +++ b/arch/ppc/platforms/chrp_time.c | |||
@@ -115,8 +115,6 @@ int __chrp chrp_set_rtc_time(unsigned long nowtime) | |||
115 | chrp_cmos_clock_write(save_control, RTC_CONTROL); | 115 | chrp_cmos_clock_write(save_control, RTC_CONTROL); |
116 | chrp_cmos_clock_write(save_freq_select, RTC_FREQ_SELECT); | 116 | chrp_cmos_clock_write(save_freq_select, RTC_FREQ_SELECT); |
117 | 117 | ||
118 | if ( (time_state == TIME_ERROR) || (time_state == TIME_BAD) ) | ||
119 | time_state = TIME_OK; | ||
120 | spin_unlock(&rtc_lock); | 118 | spin_unlock(&rtc_lock); |
121 | return 0; | 119 | return 0; |
122 | } | 120 | } |
diff --git a/arch/ppc/platforms/gemini_setup.c b/arch/ppc/platforms/gemini_setup.c index 1a42cb9b1134..e391e52383c7 100644 --- a/arch/ppc/platforms/gemini_setup.c +++ b/arch/ppc/platforms/gemini_setup.c | |||
@@ -433,9 +433,6 @@ gemini_set_rtc_time( unsigned long now ) | |||
433 | /* done writing */ | 433 | /* done writing */ |
434 | gemini_rtc_write(reg, M48T35_RTC_CONTROL); | 434 | gemini_rtc_write(reg, M48T35_RTC_CONTROL); |
435 | 435 | ||
436 | if ((time_state == TIME_ERROR) || (time_state == TIME_BAD)) | ||
437 | time_state = TIME_OK; | ||
438 | |||
439 | return 0; | 436 | return 0; |
440 | } | 437 | } |
441 | 438 | ||