summaryrefslogtreecommitdiffstats
path: root/arch/alpha
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-07-11 02:32:09 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-07-11 02:32:09 +0000
commit7f5ea64ad438953cbeb3055f424dfac01d5bcfc7 (patch)
treef8cabc30da0d0eaa578cb6369c816e02af148510 /arch/alpha
parent99e873a7003ab3980a6296c29066e3ab7956a009 (diff)
Merge with Linux 2.4.0-test3.
Diffstat (limited to 'arch/alpha')
-rw-r--r--arch/alpha/kernel/process.c2
-rw-r--r--arch/alpha/kernel/smp.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/alpha/kernel/process.c b/arch/alpha/kernel/process.c
index 27b042777..81d85386d 100644
--- a/arch/alpha/kernel/process.c
+++ b/arch/alpha/kernel/process.c
@@ -74,7 +74,7 @@ void
cpu_idle(void)
{
/* An endless idle loop with no priority at all. */
- current->priority = 0;
+ current->nice = 20;
current->counter = -100;
while (1) {
diff --git a/arch/alpha/kernel/smp.c b/arch/alpha/kernel/smp.c
index b812e2c64..b00e7d79b 100644
--- a/arch/alpha/kernel/smp.c
+++ b/arch/alpha/kernel/smp.c
@@ -651,7 +651,7 @@ smp_percpu_timer_interrupt(struct pt_regs *regs)
}
if (user) {
- if (current->priority < DEF_PRIORITY) {
+ if (current->nice > 0) {
kstat.cpu_nice++;
kstat.per_cpu_nice[cpu]++;
} else {