[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>
This commit is contained in:
committed by
Linus Torvalds
parent
64ed93a268
commit
84f902c090
@@ -28,6 +28,8 @@ struct timezone {
|
||||
#ifdef __KERNEL__
|
||||
|
||||
/* Parameters used to convert the timespec values */
|
||||
#define MSEC_PER_SEC (1000L)
|
||||
|
||||
#ifndef USEC_PER_SEC
|
||||
#define USEC_PER_SEC (1000000L)
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user