mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[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:
parent
64ed93a268
commit
84f902c090
2 changed files with 22 additions and 20 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue