Re: [CPUFREQ] Fix implicit declarations in ondemand.
From: Paul Mackerras
Date: Wed Jul 05 2006 - 19:23:00 EST
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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/