sched/core: Make policy-testing consistent
authorHenrik Austad <henrik@austad.us>
Wed, 9 Sep 2015 15:00:41 +0000 (17:00 +0200)
committerIngo Molnar <mingo@kernel.org>
Fri, 18 Sep 2015 07:23:13 +0000 (09:23 +0200)
commit20f9cd2acb1d74a8bf4b4087267f586e6ecdbc03
tree0fbd33d1065457c055134c5149bc2650491291a8
parent0c6a5b4319928b769ba81eff45bd679737a29ba1
sched/core: Make policy-testing consistent

Most of the policy-tests are done via the <class>_policy() helpers with
the notable exception of idle. A new wrapper for valid_policy() has also
been added to improve readability  in set_load_weight().

This commit does not change the logical behavior of the scheduler core.

Signed-off-by: Henrik Austad <henrik@austad.us>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Link: http://lkml.kernel.org/r/1441810841-4756-1-git-send-email-henrik@austad.us
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/core.c
kernel/sched/sched.h
This page took 0.024841 seconds and 5 git commands to generate.