Re: 2.6.22-rc2 built on ppc (2)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux