diff options
author | H. Peter Anvin <hpa@zytor.com> | 2009-09-08 21:05:53 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-09-08 21:11:47 -0700 |
commit | 408e9890f28abc5f204e7cd3643e6417890e628d (patch) | |
tree | ab569b70d58a38e861b338f1f997f62d5ab05b97 | |
parent | 91179071fb767ce93b4a44c373c749057a7a7afa (diff) | |
download | syslinux-408e9890f28abc5f204e7cd3643e6417890e628d.tar.gz |
core: declare jiffies_t, MS_PER_JIFFY
Create a specific type for jiffies, and an MS_PER_JIFFY macro.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r-- | com32/include/core/jiffies.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/com32/include/core/jiffies.h b/com32/include/core/jiffies.h index ed843625..a8e18060 100644 --- a/com32/include/core/jiffies.h +++ b/com32/include/core/jiffies.h @@ -4,10 +4,14 @@ #ifndef _CORE_JIFFIES_H #define _CORE_JIFFIES_H -#define HZ 18 +#define HZ 18 +#define MS_PER_JIFFY 55 -extern const volatile uint32_t __jiffies; -static inline uint32_t jiffies(void) +typedef uint32_t jiffies_t; +typedef int32_t sjiffies_t; + +extern const volatile jiffies_t __jiffies; +static inline jiffies_t jiffies(void) { return __jiffies; } |