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) ...@@ -1137,17 +1137,17 @@ void smp_percpu_timer_interrupt(struct pt_regs *regs)
do { do {
sparc64_do_profile(regs); sparc64_do_profile(regs);
if (!--prof_counter(cpu)) { if (!--prof_counter(cpu)) {
if (cpu == boot_cpu_id) {
irq_enter(); irq_enter();
if (cpu == boot_cpu_id) {
kstat_cpu(cpu).irqs[0]++; kstat_cpu(cpu).irqs[0]++;
timer_tick_interrupt(regs); timer_tick_interrupt(regs);
irq_exit();
} }
update_process_times(user); update_process_times(user);
irq_exit();
prof_counter(cpu) = prof_multiplier(cpu); 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