diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-07-11 02:32:09 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-07-11 02:32:09 +0000 |
commit | 7f5ea64ad438953cbeb3055f424dfac01d5bcfc7 (patch) | |
tree | f8cabc30da0d0eaa578cb6369c816e02af148510 /arch/sparc | |
parent | 99e873a7003ab3980a6296c29066e3ab7956a009 (diff) |
Merge with Linux 2.4.0-test3.
Diffstat (limited to 'arch/sparc')
-rw-r--r-- | arch/sparc/kernel/process.c | 2 | ||||
-rw-r--r-- | arch/sparc/kernel/sun4d_smp.c | 2 | ||||
-rw-r--r-- | arch/sparc/kernel/sun4m_smp.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/arch/sparc/kernel/process.c b/arch/sparc/kernel/process.c index e18d91e0e..ae76ef0e0 100644 --- a/arch/sparc/kernel/process.c +++ b/arch/sparc/kernel/process.c @@ -60,7 +60,7 @@ int cpu_idle(void) goto out; /* endless idle loop with no priority at all */ - current->priority = 0; + current->nice = 20; current->counter = -100; init_idle(); diff --git a/arch/sparc/kernel/sun4d_smp.c b/arch/sparc/kernel/sun4d_smp.c index ac9caa27f..79ea6061e 100644 --- a/arch/sparc/kernel/sun4d_smp.c +++ b/arch/sparc/kernel/sun4d_smp.c @@ -484,7 +484,7 @@ void smp4d_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 { diff --git a/arch/sparc/kernel/sun4m_smp.c b/arch/sparc/kernel/sun4m_smp.c index f0e046db3..289d746bd 100644 --- a/arch/sparc/kernel/sun4m_smp.c +++ b/arch/sparc/kernel/sun4m_smp.c @@ -471,7 +471,7 @@ void smp4m_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 { |