From 7f5ea64ad438953cbeb3055f424dfac01d5bcfc7 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Tue, 11 Jul 2000 02:32:09 +0000 Subject: Merge with Linux 2.4.0-test3. --- arch/sparc64/kernel/process.c | 2 +- arch/sparc64/kernel/smp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'arch/sparc64/kernel') diff --git a/arch/sparc64/kernel/process.c b/arch/sparc64/kernel/process.c index dd8b8274d..732c6975b 100644 --- a/arch/sparc64/kernel/process.c +++ b/arch/sparc64/kernel/process.c @@ -53,7 +53,7 @@ int cpu_idle(void) return -EPERM; /* endless idle loop with no priority at all */ - current->priority = 0; + current->nice = 20; current->counter = -100; init_idle(); diff --git a/arch/sparc64/kernel/smp.c b/arch/sparc64/kernel/smp.c index 40b12eb6a..acd65f3f2 100644 --- a/arch/sparc64/kernel/smp.c +++ b/arch/sparc64/kernel/smp.c @@ -717,7 +717,7 @@ void smp_percpu_timer_interrupt(struct pt_regs *regs) } if (user) { - if (current->priority < DEF_PRIORITY) { + if (current->nice > 0) { inc = &kstat.cpu_nice; inc2 = &kstat.per_cpu_nice[cpu]; } else { -- cgit v1.2.3