summaryrefslogtreecommitdiffstats
path: root/arch/ia64/kernel
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-07-28 23:18:56 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-07-28 23:18:56 +0000
commit4d657aa39d5bcae60c2c11bf8fb66692ddd1c9e7 (patch)
tree30f3b08741a4d4b98b16bd99ea2757ff715d1c11 /arch/ia64/kernel
parenteed6b7c84cc33f229f6fecd884d9a22af5bec514 (diff)
Merge with 2.4.0-test5 final.
Diffstat (limited to 'arch/ia64/kernel')
-rw-r--r--arch/ia64/kernel/smp.c26
1 files changed, 1 insertions, 25 deletions
diff --git a/arch/ia64/kernel/smp.c b/arch/ia64/kernel/smp.c
index cee60fa97..b5153433f 100644
--- a/arch/ia64/kernel/smp.c
+++ b/arch/ia64/kernel/smp.c
@@ -396,35 +396,11 @@ void
smp_do_timer(struct pt_regs *regs)
{
int cpu = smp_processor_id();
- int user = user_mode(regs);
struct cpuinfo_ia64 *data = &cpu_data[cpu];
- extern void update_one_process(struct task_struct *, unsigned long, unsigned long,
- unsigned long, int);
if (!--data->prof_counter) {
irq_enter(cpu, TIMER_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_mode(regs));
data->prof_counter = data->prof_multiplier;
irq_exit(cpu, TIMER_IRQ);
}