]> git.karo-electronics.de Git - linux-beck.git/commit
sched/numa: Fix task_tick_fair() from disabling numa_balancing
authorSrikar Dronamraju <srikar@linux.vnet.ibm.com>
Fri, 2 Oct 2015 02:18:25 +0000 (07:48 +0530)
committerIngo Molnar <mingo@kernel.org>
Tue, 6 Oct 2015 15:08:21 +0000 (17:08 +0200)
commitb52da86e0ad58f096710977fcda856fd84da9233
treecf673243313649eb45879010744976a27b2e759f
parente2bf1c4b17aff25f07e0d2952d8c1c66643f33fe
sched/numa: Fix task_tick_fair() from disabling numa_balancing

If static branch 'sched_numa_balancing' is enabled, it should kickstart
NUMA balancing through task_tick_numa(). However the following commit:

  2a595721a1fa ("sched/numa: Convert sched_numa_balancing to a static_branch")

erroneously disables this.

Fix this anomaly by enabling task_tick_numa() when the static branch
'sched_numa_balancing' is enabled.

Signed-off-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rik van Riel <riel@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Link: http://lkml.kernel.org/r/1443752305-27413-1-git-send-email-srikar@linux.vnet.ibm.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/fair.c