]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/vphn: Fix arch_update_cpu_topology() return value
authorJesse Larrew <jlarrew@linux.vnet.ibm.com>
Thu, 7 Jun 2012 21:04:34 +0000 (16:04 -0500)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 5 Sep 2012 06:05:19 +0000 (16:05 +1000)
commit4f6a8fd3544e2b9f6ac57cff5de9f901f487ba38
tree7ebf15489330161ab74aba15d43bee3f17edc3ce
parentca0d9e916a5760e23d607c28559021714f45f718
powerpc/vphn: Fix arch_update_cpu_topology() return value

arch_update_cpu_topology() should only return 1 when the topology has
actually changed, and should return 0 otherwise.

This patch fixes a potential bug where rebuild_sched_domains() would
reinitialize the sched domains even when the topology hasn't changed.

Signed-off-by: Jesse Larrew <jlarrew@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/mm/numa.c