sched/core: Remove check of p->sched_class
authorYao Dongdong <yaodongdong@huawei.com>
Mon, 29 Dec 2014 06:41:43 +0000 (14:41 +0800)
committerIngo Molnar <mingo@kernel.org>
Wed, 14 Jan 2015 12:34:17 +0000 (13:34 +0100)
commit1b537c7d1e58c761212a193085f9049b58f672e6
tree948a7395f03e9c16cfbba7f2f99ecdbd93cac0b6
parentbb04159df99fa353d0fb524574aca03ce2c6515b
sched/core: Remove check of p->sched_class

Search all usage of p->sched_class in sched/core.c, no one check it
before use, so it seems that every task must belong to one sched_class.

Signed-off-by: Yao Dongdong <yaodongdong@huawei.com>
[ Moved the early class assignment to make it boot. ]
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/r/1419835303-28958-1-git-send-email-yaodongdong@huawei.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/core.c