From: Simon Kirby Date: Fri, 23 Sep 2011 00:03:46 +0000 (-0700) Subject: sched: Fix up wchan borkage X-Git-Tag: v3.12-rc1~4717^4~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6ebbe7a07b3bc40b168d2afc569a6543c020d2e3;p=kernel%2Fkernel-generic.git sched: Fix up wchan borkage Commit c259e01a1ec ("sched: Separate the scheduler entry for preemption") contained a boo-boo wrecking wchan output. It forgot to put the new schedule() function in the __sched section and thereby doesn't get properly ignored for things like wchan. Tested-by: Simon Kirby Cc: stable@kernel.org # 2.6.39+ Signed-off-by: Peter Zijlstra Link: http://lkml.kernel.org/r/20110923000346.GA25425@hostway.ca Signed-off-by: Ingo Molnar --- diff --git a/kernel/sched.c b/kernel/sched.c index ec5f472..d249ea8 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -4372,7 +4372,7 @@ static inline void sched_submit_work(struct task_struct *tsk) blk_schedule_flush_plug(tsk); } -asmlinkage void schedule(void) +asmlinkage void __sched schedule(void) { struct task_struct *tsk = current;