sched: Use replace normalize_task() with __sched_setscheduler()
authorPeter Zijlstra <peterz@infradead.org>
Thu, 11 Jun 2015 12:46:38 +0000 (14:46 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 18 Jun 2015 22:25:26 +0000 (00:25 +0200)
commitdbc7f069b93a249340e974d6e8f55656280d8701
treece9c0ee808216725c2a301ccb0a9bee052f9e7f5
parente3fca9e7cbfb72694a21c886fcdf9f059cfded9c
sched: Use replace normalize_task() with __sched_setscheduler()

Reduce duplicate logic; normalize_task() is a simplified version of
__sched_setscheduler(). Parametrize the difference and collapse.

This reduces the amount of check_class_changed() sites.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: ktkhai@parallels.com
Cc: rostedt@goodmis.org
Cc: juri.lelli@gmail.com
Cc: pang.xunlei@linaro.org
Cc: oleg@redhat.com
Cc: wanpeng.li@linux.intel.com
Cc: umgwanakikbuti@gmail.com
Link: http://lkml.kernel.org/r/20150611124742.532642391@infradead.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/sched/core.c