uml: tidy IRQ code
Some tidying of the irq code before introducing irq stacks. Mostly style fixes, but the timer handler calls the timer code directly rather than going through the generic sig_handler_common_skas. Signed-off-by: Jeff Dike <jdike@linux.intel.com> Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> 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
e1a79c400a
commit
2ea5bc5e5b
@@ -61,15 +61,19 @@ void sig_handler(int sig, struct sigcontext *sc)
|
||||
|
||||
static void real_alarm_handler(int sig, struct sigcontext *sc)
|
||||
{
|
||||
union uml_pt_regs regs;
|
||||
|
||||
if(sig == SIGALRM)
|
||||
switch_timers(0);
|
||||
|
||||
CHOOSE_MODE_PROC(sig_handler_common_tt, sig_handler_common_skas,
|
||||
sig, sc);
|
||||
if(sc != NULL)
|
||||
copy_sc(®s, sc);
|
||||
regs.skas.is_user = 0;
|
||||
unblock_signals();
|
||||
timer_handler(sig, ®s);
|
||||
|
||||
if(sig == SIGALRM)
|
||||
switch_timers(1);
|
||||
|
||||
}
|
||||
|
||||
void alarm_handler(int sig, struct sigcontext *sc)
|
||||
|
Reference in New Issue
Block a user