patch-2.4.0-test5 linux/arch/alpha/kernel/smp.c
Next file: linux/arch/alpha/kernel/sys_cabriolet.c
Previous file: linux/arch/alpha/kernel/setup.c
Back to the patch index
Back to the overall index
- Lines: 39
- Date:
Wed Jul 26 18:36:44 2000
- Orig file:
v2.4.0-test4/linux/arch/alpha/kernel/smp.c
- Orig date:
Mon Jul 10 16:47:18 2000
diff -u --recursive --new-file v2.4.0-test4/linux/arch/alpha/kernel/smp.c linux/arch/alpha/kernel/smp.c
@@ -622,10 +622,6 @@
}
-extern void update_one_process(struct task_struct *p, unsigned long ticks,
- unsigned long user, unsigned long system,
- int cpu);
-
void
smp_percpu_timer_interrupt(struct pt_regs *regs)
{
@@ -643,26 +639,7 @@
which would be a Bad Thing. */
irq_enter(cpu, RTC_IRQ);
- update_one_process(current, 1, user, !user, cpu);
- if (current->pid) {
- 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]++;
- }
- }
+ update_process_times(user);
data->prof_counter = data->prof_multiplier;
irq_exit(cpu, RTC_IRQ);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)