diff options
Diffstat (limited to 'arch/um/os-Linux/time.c')
-rw-r--r-- | arch/um/os-Linux/time.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/um/os-Linux/time.c b/arch/um/os-Linux/time.c index 31fb3235f552..4ae73c0e5485 100644 --- a/arch/um/os-Linux/time.c +++ b/arch/um/os-Linux/time.c | |||
@@ -66,6 +66,7 @@ void switch_timers(int to_real) | |||
66 | errno); | 66 | errno); |
67 | } | 67 | } |
68 | 68 | ||
69 | #ifdef UML_CONFIG_MODE_TT | ||
69 | void uml_idle_timer(void) | 70 | void uml_idle_timer(void) |
70 | { | 71 | { |
71 | if(signal(SIGVTALRM, SIG_IGN) == SIG_ERR) | 72 | if(signal(SIGVTALRM, SIG_IGN) == SIG_ERR) |
@@ -75,6 +76,7 @@ void uml_idle_timer(void) | |||
75 | SA_RESTART, SIGUSR1, SIGIO, SIGWINCH, SIGVTALRM, -1); | 76 | SA_RESTART, SIGUSR1, SIGIO, SIGWINCH, SIGVTALRM, -1); |
76 | set_interval(ITIMER_REAL); | 77 | set_interval(ITIMER_REAL); |
77 | } | 78 | } |
79 | #endif | ||
78 | 80 | ||
79 | unsigned long long os_nsecs(void) | 81 | unsigned long long os_nsecs(void) |
80 | { | 82 | { |