lkml.org 
[lkml]   [2006]   [Jul]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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/

\
 
 \ /
  Last update: 2006-07-06 01:27    [W:0.031 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site