Commit b57bbdb1 authored by Roland McGrath's avatar Roland McGrath Committed by Linus Torvalds

[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: default avatarLinus Torvalds <torvalds@osdl.org>
parent 7cfa3f59
......@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment