Messages in this thread | | | Date | Thu, 6 Jul 2006 09:09:20 +1000 | From | Paul Mackerras <> | Subject | Re: [CPUFREQ] Fix implicit declarations in ondemand. |
| |
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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |