summaryrefslogtreecommitdiffstats
path: root/arch/sparc64/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sparc64/kernel')
-rw-r--r--arch/sparc64/kernel/process.c2
-rw-r--r--arch/sparc64/kernel/smp.c2
2 files changed, 2 insertions, 2 deletions
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 {