[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0705211223350.1817@scrub.home>
Date: Mon, 21 May 2007 12:25:14 +0200 (CEST)
From: Roman Zippel <zippel@...ux-m68k.org>
To: Thomas Gleixner <tglx@...utronix.de>
cc: Andrew Morton <akpm@...ux-foundation.org>,
Elimar Riesebieter <riesebie@...ec.de>, mingo@...e.hu,
linux-kernel@...r.kernel.org
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists