patch-2.4.0-test5 linux/arch/sparc/kernel/sun4m_smp.c
Next file: linux/arch/sparc/math-emu/Makefile
Previous file: linux/arch/sparc/kernel/sun4d_smp.c
Back to the patch index
Back to the overall index
- Lines: 43
- Date:
Wed Jul 26 18:36:44 2000
- Orig file:
v2.4.0-test4/linux/arch/sparc/kernel/sun4m_smp.c
- Orig date:
Fri Jul 14 12:12:07 2000
diff -u --recursive --new-file v2.4.0-test4/linux/arch/sparc/kernel/sun4m_smp.c linux/arch/sparc/kernel/sun4m_smp.c
@@ -439,10 +439,6 @@
extern unsigned int prof_multiplier[NR_CPUS];
extern unsigned int prof_counter[NR_CPUS];
-extern void update_one_process(struct task_struct *p, unsigned long ticks,
- unsigned long user, unsigned long system,
- int cpu);
-
extern void sparc_do_profile(unsigned long pc, unsigned long o7);
void smp4m_percpu_timer_interrupt(struct pt_regs *regs)
@@ -458,29 +454,10 @@
int user = user_mode(regs);
irq_enter(cpu, 0);
- if(current->pid) {
- update_one_process(current, 1, user, !user, cpu);
+ update_process_times(user);
+ irq_exit(cpu, 0);
- if(--current->counter <= 0) {
- current->counter = 0;
- current->need_resched = 1;
- }
-
- if(user) {
- if(current->nice > 0) {
- kstat.cpu_nice++;
- kstat.per_cpu_nice[cpu]++;
- } else {
- kstat.cpu_user++;
- kstat.per_cpu_user[cpu]++;
- }
- } else {
- kstat.cpu_system++;
- kstat.per_cpu_system[cpu]++;
- }
- }
prof_counter[cpu] = prof_multiplier[cpu];
- irq_exit(cpu, 0);
}
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)