summaryrefslogtreecommitdiffstats
path: root/arch/um/os-Linux/time.c
diff options
context:
space:
mode:
authorJeff Dike <jdike@addtoit.com>2006-07-10 13:45:09 +0200
committerLinus Torvalds <torvalds@g5.osdl.org>2006-07-10 22:24:23 +0200
commitbacf4549187ddb624a5d89129c7dccc0ca67ce7c (patch)
tree8f93edf174930b43c1e15da3459fa0bbd9dc2276 /arch/um/os-Linux/time.c
parent[PATCH] uml: timer handler tidying (diff)
downloadlinux-bacf4549187ddb624a5d89129c7dccc0ca67ce7c.tar.xz
linux-bacf4549187ddb624a5d89129c7dccc0ca67ce7c.zip
[PATCH] uml: ifdef a mode-specific function
uml_idle_timer is tt-mode only, so ifdef it as such to make it easier to spot when tt mode is killed. 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 '')
-rw-r--r--arch/um/os-Linux/time.c2
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)
errno);
}
+#ifdef UML_CONFIG_MODE_TT
void uml_idle_timer(void)
{
if(signal(SIGVTALRM, SIG_IGN) == SIG_ERR)
@@ -75,6 +76,7 @@ void uml_idle_timer(void)
SA_RESTART, SIGUSR1, SIGIO, SIGWINCH, SIGVTALRM, -1);
set_interval(ITIMER_REAL);
}
+#endif
unsigned long long os_nsecs(void)
{