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>
This commit is contained in:

committed by
Linus Torvalds

parent
a2f018bf38
commit
78a26e25ce
@@ -85,6 +85,16 @@ void alarm_handler(int sig, struct sigcontext *sc)
|
||||
set_signals(enabled);
|
||||
}
|
||||
|
||||
void timer_init(void)
|
||||
{
|
||||
set_handler(SIGVTALRM, (__sighandler_t) alarm_handler,
|
||||
SA_ONSTACK | SA_RESTART, SIGUSR1, SIGIO, SIGWINCH,
|
||||
SIGALRM, -1);
|
||||
set_handler(SIGALRM, (__sighandler_t) alarm_handler,
|
||||
SA_ONSTACK | SA_RESTART, SIGUSR1, SIGIO, SIGWINCH,
|
||||
SIGALRM, -1);
|
||||
}
|
||||
|
||||
void set_sigstack(void *sig_stack, int size)
|
||||
{
|
||||
stack_t stack = ((stack_t) { .ss_flags = 0,
|
||||
|
Reference in New Issue
Block a user