]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit02ea0b71d2b662165c3af014b6121af26e33c059
tree948a7395f03e9c16cfbba7f2f99ecdbd93cac0b6
parent92ee0ff145302e3c0a3b99e19accedf9a0007ede
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