sched/deadline: Avoid pointless __setscheduler()
authorWanpeng Li <wanpeng.li@linux.intel.com>
Wed, 26 Nov 2014 00:44:04 +0000 (08:44 +0800)
committerIngo Molnar <mingo@kernel.org>
Wed, 4 Feb 2015 06:52:27 +0000 (07:52 +0100)
commit75381608e8410a72ae8b4080849dc86b472c01fb
tree738bd894b55dbb61c8437c1d845382b70685e5f3
parent1019a359d3dc4b64d0e1e5a5efcb725d5e83994d
sched/deadline: Avoid pointless __setscheduler()

There is no need to dequeue/enqueue and push/pull if there are
no scheduling parameters changed for the DL class.

Both fair and RT classes already check if parameters changed for
them to avoid unnecessary overhead. This patch add the parameters
changed test for the DL class in order to reduce overhead.

Signed-off-by: Wanpeng Li <wanpeng.li@linux.intel.com>
[ Fixed up the changelog. ]
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Juri Lelli <juri.lelli@arm.com>
Cc: Kirill Tkhai <ktkhai@parallels.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/r/1416962647-76792-5-git-send-email-wanpeng.li@linux.intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/core.c