diff options
author | Jeff Dike <jdike@addtoit.com> | 2007-10-16 04:27:28 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-16 12:43:08 -0400 |
commit | 1a80521990a0e30e61a92994a009adc52161b070 (patch) | |
tree | 3cf900adf9383ff68fd66cd74cfaf0e0ce483845 /arch/um/include/os.h | |
parent | 61b63c556c0877ee6d3832ee641bc427ff4d94d6 (diff) |
uml: use *SEC_PER_*SEC constants
There are various uses of powers of 1000, plus the odd BILLION constant in the
time code. However, there are perfectly good definitions of *SEC_PER_*SEC in
linux/time.h which can be used instaed.
These are replaced directly in kernel code. Userspace code imports those
constants as UM_*SEC_PER_*SEC and uses these.
Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/um/include/os.h')
-rw-r--r-- | arch/um/include/os.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/um/include/os.h b/arch/um/include/os.h index a1b0804ee57b..fbf0a87c6eaa 100644 --- a/arch/um/include/os.h +++ b/arch/um/include/os.h | |||
@@ -249,8 +249,6 @@ extern int setjmp_wrapper(void (*proc)(void *, void *), ...); | |||
249 | extern void os_dump_core(void); | 249 | extern void os_dump_core(void); |
250 | 250 | ||
251 | /* time.c */ | 251 | /* time.c */ |
252 | #define BILLION (1000 * 1000 * 1000) | ||
253 | |||
254 | extern void idle_sleep(unsigned long long nsecs); | 252 | extern void idle_sleep(unsigned long long nsecs); |
255 | extern int set_interval(void); | 253 | extern int set_interval(void); |
256 | extern int timer_one_shot(int ticks); | 254 | extern int timer_one_shot(int ticks); |