Messages in this thread | | | Date | Mon, 21 May 2007 12:25:14 +0200 (CEST) | From | Roman Zippel <> | Subject | Re: 2.6.22-rc2 built on ppc (2) |
| |
Hi,
On Mon, 21 May 2007, Thomas Gleixner wrote:
> diff --git a/kernel/time/ntp.c b/kernel/time/ntp.c > index cb25649..bb1bf86 100644 > --- a/kernel/time/ntp.c > +++ b/kernel/time/ntp.c > @@ -304,10 +304,12 @@ int do_adjtimex(struct timex *txc) > temp64 = time_offset << (SHIFT_NSEC - SHIFT_FLL); > if (time_offset < 0) { > temp64 = -temp64; > - do_div(temp64, mtemp); > + temp64 = div_long_long_rem_signed(temp64, mtemp, > + &rem); > freq_adj -= temp64; > } else { > - do_div(temp64, mtemp); > + temp64 = div_long_long_rem_signed(temp64, mtemp, > + &rem); > freq_adj += temp64; > } > }
This only returns a long.
bye, Roman - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |