remove div_long_long_rem
[linux-block.git] / kernel / time / ntp.c
index a4492f3d64db95b173887878d8520ab9522cd746..dbd6f890561425aa28a372118eb9a6c4d7206813 100644 (file)
@@ -234,7 +234,7 @@ static inline void notify_cmos_timer(void) { }
  */
 int do_adjtimex(struct timex *txc)
 {
-       long mtemp, save_adjust, rem;
+       long mtemp, save_adjust;
        s64 freq_adj;
        int result;
 
@@ -345,9 +345,7 @@ int do_adjtimex(struct timex *txc)
                    freq_adj += time_freq;
                    freq_adj = min(freq_adj, (s64)MAXFREQ_NSEC);
                    time_freq = max(freq_adj, (s64)-MAXFREQ_NSEC);
-                   time_offset = div_long_long_rem_signed(time_offset,
-                                                          NTP_INTERVAL_FREQ,
-                                                          &rem);
+                   time_offset = div_s64(time_offset, NTP_INTERVAL_FREQ);
                    time_offset <<= SHIFT_UPDATE;
                } /* STA_PLL */
            } /* txc->modes & ADJ_OFFSET */