Re: [CPUFREQ] Fix implicit declarations in ondemand.

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

 



David Woodhouse writes:

> +static inline cputime64_t jiffies64_to_cputime64(const u64 jif)
> +{
> +	cputime_t ct;
> +	u64 sec;
> +
> +	/* have to be a little careful about overflow */
> +	ct = jif % HZ;
> +	sec = jif / HZ;

I think we want to use do_div here, just in case we ever get around to
implementing this stuff on ppc32.

Paul.
-
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