aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/os-Linux/signal.c
diff options
context:
space:
mode:
authorJeff Dike <jdike@addtoit.com>2007-10-16 04:27:23 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-16 12:43:08 -0400
commit78a26e25ce4837a03ac3b6c32cdae1958e547639 (patch)
treed50a46a1af87f62781c2eb781cd7e20cea20e5ff /arch/um/os-Linux/signal.c
parenta2f018bf389422a55f1455ab8b9b5eedc5ea1803 (diff)
uml: separate timer initialization
Move timer signal initialization from init_irq_signals to a new function, timer_init. 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/os-Linux/signal.c')
-rw-r--r--arch/um/os-Linux/signal.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/um/os-Linux/signal.c b/arch/um/os-Linux/signal.c
index 1c5267ec13b0..53593c8b9c34 100644
--- a/arch/um/os-Linux/signal.c
+++ b/arch/um/os-Linux/signal.c
@@ -85,6 +85,16 @@ void alarm_handler(int sig, struct sigcontext *sc)
85 set_signals(enabled); 85 set_signals(enabled);
86} 86}
87 87
88void timer_init(void)
89{
90 set_handler(SIGVTALRM, (__sighandler_t) alarm_handler,
91 SA_ONSTACK | SA_RESTART, SIGUSR1, SIGIO, SIGWINCH,
92 SIGALRM, -1);
93 set_handler(SIGALRM, (__sighandler_t) alarm_handler,
94 SA_ONSTACK | SA_RESTART, SIGUSR1, SIGIO, SIGWINCH,
95 SIGALRM, -1);
96}
97
88void set_sigstack(void *sig_stack, int size) 98void set_sigstack(void *sig_stack, int size)
89{ 99{
90 stack_t stack = ((stack_t) { .ss_flags = 0, 100 stack_t stack = ((stack_t) { .ss_flags = 0,