diff options
author | Gennady Sharapov <Gennady.V.Sharapov@intel.com> | 2006-01-18 20:42:42 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-18 22:20:19 -0500 |
commit | cff65c4f0ea6662124bbb7bf3806e5df1c6d735d (patch) | |
tree | 5f19b3facdfa6a50ad1668b28d1ff74a92a90271 /arch/um/include | |
parent | 4fef0c10fa174b57a10854b8b4b2b90d155706e0 (diff) |
[PATCH] uml: move libc-dependent time code
The serial UML OS-abstraction layer patch (um/kernel dir).
This moves all systemcalls from time.c file under os-Linux dir and joins
time.c and tine_kernel.c files
Signed-off-by: Gennady Sharapov <Gennady.V.Sharapov@intel.com>
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/um/include')
-rw-r--r-- | arch/um/include/os.h | 12 | ||||
-rw-r--r-- | arch/um/include/time_user.h | 19 |
2 files changed, 11 insertions, 20 deletions
diff --git a/arch/um/include/os.h b/arch/um/include/os.h index 7f27dfe0ecac..624938ad9e14 100644 --- a/arch/um/include/os.h +++ b/arch/um/include/os.h | |||
@@ -190,7 +190,6 @@ extern int os_protect_memory(void *addr, unsigned long len, | |||
190 | int r, int w, int x); | 190 | int r, int w, int x); |
191 | extern int os_unmap_memory(void *addr, int len); | 191 | extern int os_unmap_memory(void *addr, int len); |
192 | extern void os_flush_stdout(void); | 192 | extern void os_flush_stdout(void); |
193 | extern unsigned long long os_usecs(void); | ||
194 | 193 | ||
195 | /* tt.c | 194 | /* tt.c |
196 | * for tt mode only (will be deleted in future...) | 195 | * for tt mode only (will be deleted in future...) |
@@ -245,4 +244,15 @@ extern void setup_machinename(char *machine_out); | |||
245 | extern void setup_hostinfo(void); | 244 | extern void setup_hostinfo(void); |
246 | extern int setjmp_wrapper(void (*proc)(void *, void *), ...); | 245 | extern int setjmp_wrapper(void (*proc)(void *, void *), ...); |
247 | 246 | ||
247 | /* time.c */ | ||
248 | #define BILLION (1000 * 1000 * 1000) | ||
249 | |||
250 | extern void switch_timers(int to_real); | ||
251 | extern void idle_sleep(int secs); | ||
252 | extern void enable_timer(void); | ||
253 | extern void disable_timer(void); | ||
254 | extern void user_time_init(void); | ||
255 | extern void uml_idle_timer(void); | ||
256 | extern unsigned long long os_nsecs(void); | ||
257 | |||
248 | #endif | 258 | #endif |
diff --git a/arch/um/include/time_user.h b/arch/um/include/time_user.h deleted file mode 100644 index 17d7ef2141f4..000000000000 --- a/arch/um/include/time_user.h +++ /dev/null | |||
@@ -1,19 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2002 Jeff Dike (jdike@karaya.com) | ||
3 | * Licensed under the GPL | ||
4 | */ | ||
5 | |||
6 | #ifndef __TIME_USER_H__ | ||
7 | #define __TIME_USER_H__ | ||
8 | |||
9 | extern void timer(void); | ||
10 | extern void switch_timers(int to_real); | ||
11 | extern void idle_sleep(int secs); | ||
12 | extern void enable_timer(void); | ||
13 | extern void prepare_timer(void * ptr); | ||
14 | extern void disable_timer(void); | ||
15 | extern unsigned long time_lock(void); | ||
16 | extern void time_unlock(unsigned long); | ||
17 | extern void user_time_init(void); | ||
18 | |||
19 | #endif | ||