speed up jiffies conversion functions if HZ==USER_HZ
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 6 Feb 2008 09:38:06 +0000 (01:38 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 6 Feb 2008 18:41:10 +0000 (10:41 -0800)
commitec03d7073971e20a866448d62c992a168201ac82
tree16b1954017d97ff8a40ca4ee78fd8f837c710a14
parent6ffc787a4492ac627315aaeafdfdc0a5c3028582
speed up jiffies conversion functions if HZ==USER_HZ

Avoid calling do_div(x, 1) in this case.

Cc: David Fries <david@fries.net>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/time.c