aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/time.h
diff options
context:
space:
mode:
authorNishanth Aravamudan <nacc@us.ibm.com>2005-09-10 03:27:22 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2005-09-10 13:06:36 -0400
commit84f902c0903a98a315b45a4fba3d2ac0de388256 (patch)
treeb7c60677db9b34ce64777c02a55ae7ed49eb25e6 /include/linux/time.h
parent64ed93a268bc18fa6f72f61420d0e0022c5e38d1 (diff)
[PATCH] include: update jiffies/{m,u}secs conversion functions
Clarify the human-time units to jiffies conversion functions by using the constants in time.h. This makes many of the subsequent patches direct copies of the current code. Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/time.h')
-rw-r--r--include/linux/time.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/time.h b/include/linux/time.h
index c10d4c21c183..36fb2ef13cff 100644
--- a/include/linux/time.h
+++ b/include/linux/time.h
@@ -28,6 +28,8 @@ struct timezone {
28#ifdef __KERNEL__ 28#ifdef __KERNEL__
29 29
30/* Parameters used to convert the timespec values */ 30/* Parameters used to convert the timespec values */
31#define MSEC_PER_SEC (1000L)
32
31#ifndef USEC_PER_SEC 33#ifndef USEC_PER_SEC
32#define USEC_PER_SEC (1000000L) 34#define USEC_PER_SEC (1000000L)
33#endif 35#endif