Commit 434a47bd authored by David S. Miller's avatar David S. Miller

[SPARC64]: Make sure update_process_times runs inside of irq_{enter,exit} region.

parent e9257ff4
......@@ -1137,17 +1137,17 @@ void smp_percpu_timer_interrupt(struct pt_regs *regs)
do {
sparc64_do_profile(regs);
if (!--prof_counter(cpu)) {
if (cpu == boot_cpu_id) {
irq_enter();
irq_enter();
if (cpu == boot_cpu_id) {
kstat_cpu(cpu).irqs[0]++;
timer_tick_interrupt(regs);
irq_exit();
}
update_process_times(user);
irq_exit();
prof_counter(cpu) = prof_multiplier(cpu);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment