diff options
author | Ingo Molnar <mingo@kernel.org> | 2015-08-04 03:42:54 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2015-08-04 03:48:12 -0400 |
commit | bef033a3c68a0cd31c81973946be768e9dd7ba42 (patch) | |
tree | f716e094e5ec99ee369a96734e61ce2f72c1fb6d | |
parent | 3c8e4793556981a7f532599959aa3303968056f0 (diff) |
sched, sparc32: Update scheduler comments in copy_thread()
There's no finish_arch_switch() anymore in the latest scheduler tree.
Also update some other details.
Cc: David S. Miller <davem@davemloft.net>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Cc: sparclinux@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r-- | arch/sparc/kernel/process_32.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/sparc/kernel/process_32.c b/arch/sparc/kernel/process_32.c index 50e7b626afe8..c5113c7ce2fd 100644 --- a/arch/sparc/kernel/process_32.c +++ b/arch/sparc/kernel/process_32.c | |||
@@ -333,11 +333,11 @@ int copy_thread(unsigned long clone_flags, unsigned long sp, | |||
333 | childregs = (struct pt_regs *) (new_stack + STACKFRAME_SZ); | 333 | childregs = (struct pt_regs *) (new_stack + STACKFRAME_SZ); |
334 | 334 | ||
335 | /* | 335 | /* |
336 | * A new process must start with interrupts closed in 2.5, | 336 | * A new process must start with interrupts disabled, see schedule_tail() |
337 | * because this is how Mingo's scheduler works (see schedule_tail | 337 | * and finish_task_switch(). (If we do not do it and if a timer interrupt |
338 | * and finish_arch_switch). If we do not do it, a timer interrupt hits | 338 | * hits before we unlock and attempts to take the rq->lock, we deadlock.) |
339 | * before we unlock, attempts to re-take the rq->lock, and then we die. | 339 | * |
340 | * Thus, kpsr|=PSR_PIL. | 340 | * Thus, kpsr |= PSR_PIL. |
341 | */ | 341 | */ |
342 | ti->ksp = (unsigned long) new_stack; | 342 | ti->ksp = (unsigned long) new_stack; |
343 | p->thread.kregs = childregs; | 343 | p->thread.kregs = childregs; |