diff options
Diffstat (limited to 'arch/powerpc/kernel/time.c')
-rw-r--r-- | arch/powerpc/kernel/time.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/time.c b/arch/powerpc/kernel/time.c index ad501d62aa6e..82f2cabb4f47 100644 --- a/arch/powerpc/kernel/time.c +++ b/arch/powerpc/kernel/time.c | |||
@@ -154,7 +154,7 @@ static __inline__ void timer_check_rtc(void) | |||
154 | * We should have an rtc call that only sets the minutes and | 154 | * We should have an rtc call that only sets the minutes and |
155 | * seconds like on Intel to avoid problems with non UTC clocks. | 155 | * seconds like on Intel to avoid problems with non UTC clocks. |
156 | */ | 156 | */ |
157 | if (ntp_synced() && | 157 | if (ppc_md.set_rtc_time && ntp_synced() && |
158 | xtime.tv_sec - last_rtc_update >= 659 && | 158 | xtime.tv_sec - last_rtc_update >= 659 && |
159 | abs((xtime.tv_nsec/1000) - (1000000-1000000/HZ)) < 500000/HZ && | 159 | abs((xtime.tv_nsec/1000) - (1000000-1000000/HZ)) < 500000/HZ && |
160 | jiffies - wall_jiffies == 1) { | 160 | jiffies - wall_jiffies == 1) { |