Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2005-01-20 21:48:16 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-01-20 21:48:16 -0800
commitb57bbdb10b4823de638fa1d5439c15b1b54b1f12 (patch)
treec4bfae46c0551e0c5c2ce1b12ee68e25d8e47725
parent7cfa3f596b40f8627d783ec45dc0534a410eafb4 (diff)
[PATCH] cputime.h seems to assume HZ==1000
There's 1000 msecs in a second. No relation to HZ, which just happens to be 1000 in some cases. Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--include/asm-generic/cputime.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-generic/cputime.h b/include/asm-generic/cputime.h
index c9968a09f8ab..9ccdb6084dae 100644
--- a/include/asm-generic/cputime.h
+++ b/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)
-#define secs_to_cputime(__secs) (msecs_to_jiffies(__secs * HZ))
+#define cputime_to_secs(__ct) (jiffies_to_msecs(__ct) / 1000)
+#define secs_to_cputime(__secs) (msecs_to_jiffies((__secs) * 1000))
/*
* Convert cputime to timespec and back.