diff options
Diffstat (limited to 'arch/um/os-Linux/time.c')
-rw-r--r-- | arch/um/os-Linux/time.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/arch/um/os-Linux/time.c b/arch/um/os-Linux/time.c index 5de169b168f6..5eb32d24ba58 100644 --- a/arch/um/os-Linux/time.c +++ b/arch/um/os-Linux/time.c | |||
@@ -30,13 +30,6 @@ int set_interval(int is_virtual) | |||
30 | return 0; | 30 | return 0; |
31 | } | 31 | } |
32 | 32 | ||
33 | #ifdef UML_CONFIG_MODE_TT | ||
34 | void enable_timer(void) | ||
35 | { | ||
36 | set_interval(1); | ||
37 | } | ||
38 | #endif | ||
39 | |||
40 | void disable_timer(void) | 33 | void disable_timer(void) |
41 | { | 34 | { |
42 | struct itimerval disable = ((struct itimerval) { { 0, 0 }, { 0, 0 }}); | 35 | struct itimerval disable = ((struct itimerval) { { 0, 0 }, { 0, 0 }}); |
@@ -71,18 +64,6 @@ void switch_timers(int to_real) | |||
71 | errno); | 64 | errno); |
72 | } | 65 | } |
73 | 66 | ||
74 | #ifdef UML_CONFIG_MODE_TT | ||
75 | void uml_idle_timer(void) | ||
76 | { | ||
77 | if(signal(SIGVTALRM, SIG_IGN) == SIG_ERR) | ||
78 | panic("Couldn't unset SIGVTALRM handler"); | ||
79 | |||
80 | set_handler(SIGALRM, (__sighandler_t) alarm_handler, | ||
81 | SA_RESTART, SIGUSR1, SIGIO, SIGWINCH, SIGVTALRM, -1); | ||
82 | set_interval(0); | ||
83 | } | ||
84 | #endif | ||
85 | |||
86 | unsigned long long os_nsecs(void) | 67 | unsigned long long os_nsecs(void) |
87 | { | 68 | { |
88 | struct timeval tv; | 69 | struct timeval tv; |