summaryrefslogtreecommitdiffstats
path: root/init/Makefile
diff options
context:
space:
mode:
authorFrederic Weisbecker <fweisbec@gmail.com>2016-04-19 17:36:51 +0200
committerIngo Molnar <mingo@kernel.org>2016-04-23 14:20:42 +0200
commit9fd81dd5ce0b12341c9f83346f8d32ac68bd3841 (patch)
tree6b189e45a9048f4c328f8f4ad80cd42ed899f1e6 /init/Makefile
parent1f41906a6fda1114debd3898668bd7ab6470ee41 (diff)
downloadlinux-stable-9fd81dd5ce0b12341c9f83346f8d32ac68bd3841.tar.gz
linux-stable-9fd81dd5ce0b12341c9f83346f8d32ac68bd3841.tar.bz2
linux-stable-9fd81dd5ce0b12341c9f83346f8d32ac68bd3841.zip
sched/fair: Optimize !CONFIG_NO_HZ_COMMON CPU load updates
Some code in CPU load update only concern NO_HZ configs but it is built on all configurations. When NO_HZ isn't built, that code is harmless but just happens to take some useless ressources in CPU and memory: 1) one useless field in struct rq 2) jiffies record on every tick that is never used (cpu_load_update_periodic) 3) decay_load_missed is called two times on every tick to eventually return immediately with no action taken. And that function is dead code. For pure optimization purposes, lets conditionally build the NO_HZ related code. Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Byungchul Park <byungchul.park@lge.com> Cc: Chris Metcalf <cmetcalf@ezchip.com> Cc: Christoph Lameter <cl@linux.com> Cc: Luiz Capitulino <lcapitulino@redhat.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul E . McKenney <paulmck@linux.vnet.ibm.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Rik van Riel <riel@redhat.com> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/1461080211-16271-1-git-send-email-fweisbec@gmail.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'init/Makefile')
0 files changed, 0 insertions, 0 deletions