Re: [PATCH] cputime.h seems to assume HZ==1000

2005-01-19 Thread George Anzinger
Linus Torvalds wrote: On Mon, 17 Jan 2005, Roland McGrath wrote: Shouldn't msecs mean msecs, not secs/HZ? Hmm, sure, but why go through "msecs" at all? --- linux-2.6/include/asm-generic/cputime.h +++ linux-2.6/include/asm-generic/cputime.h @@ -35,8 +35,8 @@ typedef u64 cputime64_t; /* * Convert

Re: [PATCH] cputime.h seems to assume HZ==1000

2005-01-17 Thread Linus Torvalds
On Mon, 17 Jan 2005, Roland McGrath wrote: > > Shouldn't msecs mean msecs, not secs/HZ? Hmm, sure, but why go through "msecs" at all? > --- linux-2.6/include/asm-generic/cputime.h > +++ linux-2.6/include/asm-generic/cputime.h > @@ -35,8 +35,8 @@ typedef u64 cputime64_t; > /* > * Convert cput

[PATCH] cputime.h seems to assume HZ==1000

2005-01-17 Thread Roland McGrath
Shouldn't msecs mean msecs, not secs/HZ? --- linux-2.6/include/asm-generic/cputime.h +++ linux-2.6/include/asm-generic/cputime.h @@ -35,8 +35,8 @@ typedef u64 cputime64_t; /* * Convert cputime to seconds and back. */ -#define cputime_to_secs(__ct) (jiffies_to_msecs(__ct) / HZ) -#defi