diff options
| author | Anton Altaparmakov <aia21@cantab.net> | 2005-06-30 04:52:20 -0400 |
|---|---|---|
| committer | Anton Altaparmakov <aia21@cantab.net> | 2005-06-30 04:52:20 -0400 |
| commit | c2d9b8387bce8b4a0fd402fab7dc1319d11a418d (patch) | |
| tree | 082cf7dd287f61635198011e61c3de1be130cc42 /kernel/sched.c | |
| parent | 2a322e4c08be4e7cb0c04b427ddaaa679fd88863 (diff) | |
| parent | 9b4311eedb17fa88f02e4876cd6aa9a08e383cd6 (diff) | |
Automerge with /usr/src/ntfs-2.6.git.
Diffstat (limited to 'kernel/sched.c')
| -rw-r--r-- | kernel/sched.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index a07cff90d849..5f2182d42241 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
| @@ -3448,15 +3448,7 @@ int task_nice(const task_t *p) | |||
| 3448 | { | 3448 | { |
| 3449 | return TASK_NICE(p); | 3449 | return TASK_NICE(p); |
| 3450 | } | 3450 | } |
| 3451 | |||
| 3452 | /* | ||
| 3453 | * The only users of task_nice are binfmt_elf and binfmt_elf32. | ||
| 3454 | * binfmt_elf is no longer modular, but binfmt_elf32 still is. | ||
| 3455 | * Therefore, task_nice is needed if there is a compat_mode. | ||
| 3456 | */ | ||
| 3457 | #ifdef CONFIG_COMPAT | ||
| 3458 | EXPORT_SYMBOL_GPL(task_nice); | 3451 | EXPORT_SYMBOL_GPL(task_nice); |
| 3459 | #endif | ||
| 3460 | 3452 | ||
| 3461 | /** | 3453 | /** |
| 3462 | * idle_cpu - is a given cpu idle currently? | 3454 | * idle_cpu - is a given cpu idle currently? |
| @@ -4174,6 +4166,14 @@ void show_state(void) | |||
| 4174 | read_unlock(&tasklist_lock); | 4166 | read_unlock(&tasklist_lock); |
| 4175 | } | 4167 | } |
| 4176 | 4168 | ||
| 4169 | /** | ||
| 4170 | * init_idle - set up an idle thread for a given CPU | ||
| 4171 | * @idle: task in question | ||
| 4172 | * @cpu: cpu the idle task belongs to | ||
| 4173 | * | ||
| 4174 | * NOTE: this function does not set the idle thread's NEED_RESCHED | ||
| 4175 | * flag, to make booting more robust. | ||
| 4176 | */ | ||
| 4177 | void __devinit init_idle(task_t *idle, int cpu) | 4177 | void __devinit init_idle(task_t *idle, int cpu) |
| 4178 | { | 4178 | { |
| 4179 | runqueue_t *rq = cpu_rq(cpu); | 4179 | runqueue_t *rq = cpu_rq(cpu); |
| @@ -4191,7 +4191,6 @@ void __devinit init_idle(task_t *idle, int cpu) | |||
| 4191 | #if defined(CONFIG_SMP) && defined(__ARCH_WANT_UNLOCKED_CTXSW) | 4191 | #if defined(CONFIG_SMP) && defined(__ARCH_WANT_UNLOCKED_CTXSW) |
| 4192 | idle->oncpu = 1; | 4192 | idle->oncpu = 1; |
| 4193 | #endif | 4193 | #endif |
| 4194 | set_tsk_need_resched(idle); | ||
| 4195 | spin_unlock_irqrestore(&rq->lock, flags); | 4194 | spin_unlock_irqrestore(&rq->lock, flags); |
| 4196 | 4195 | ||
| 4197 | /* Set the preempt count _outside_ the spinlocks! */ | 4196 | /* Set the preempt count _outside_ the spinlocks! */ |
