summaryrefslogtreecommitdiffstats
path: root/arch/mips64/sgi-ip27
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-08-09 22:12:23 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-08-09 22:12:23 +0000
commitb745203b24d53a979f43ec5215f06760e8dc94f4 (patch)
treef4363aacbf1303259d76c990598051ecdf948645 /arch/mips64/sgi-ip27
parent7d5f5b48b656309ddb06aa3db34fd7d66c9624d2 (diff)
Kill warning.
Diffstat (limited to 'arch/mips64/sgi-ip27')
-rw-r--r--arch/mips64/sgi-ip27/ip27-timer.c23
1 files changed, 13 insertions, 10 deletions
diff --git a/arch/mips64/sgi-ip27/ip27-timer.c b/arch/mips64/sgi-ip27/ip27-timer.c
index def756121..0682ea3e6 100644
--- a/arch/mips64/sgi-ip27/ip27-timer.c
+++ b/arch/mips64/sgi-ip27/ip27-timer.c
@@ -93,7 +93,6 @@ void rt_timer_interrupt(struct pt_regs *regs)
int cpu = smp_processor_id();
int cpuA = ((cputoslice(cpu)) == 0);
int irq = 7; /* XXX Assign number */
- int user = user_mode(regs);
write_lock(&xtime_lock);
@@ -111,15 +110,19 @@ again:
do_timer(regs);
#ifdef CONFIG_SMP
- /*
- * update_process_times() expects us to have done irq_enter().
- * Besides, if we don't timer interrupts ignore the global
- * interrupt lock, which is the WrongThing (tm) to do.
- * Picked from i386 code.
- */
- irq_enter(cpu, 0);
- update_process_times(user);
- irq_exit(cpu, 0);
+ {
+ int user = user_mode(regs);
+
+ /*
+ * update_process_times() expects us to have done irq_enter().
+ * Besides, if we don't timer interrupts ignore the global
+ * interrupt lock, which is the WrongThing (tm) to do.
+ * Picked from i386 code.
+ */
+ irq_enter(cpu, 0);
+ update_process_times(user);
+ irq_exit(cpu, 0);
+ }
#endif /* CONFIG_SMP */
/*