diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2013-12-05 19:38:22 +0100 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-12-09 01:40:23 +0100 |
commit | 5877231f646bbd6d1d545e7af83aaa6e6b746013 (patch) | |
tree | d0ca877cb929b73087aafa19ca884409391f0ebc /include/memory | |
parent | powernv: Remove get/set_rtc_time when they are not present (diff) | |
download | linux-5877231f646bbd6d1d545e7af83aaa6e6b746013.tar.xz linux-5877231f646bbd6d1d545e7af83aaa6e6b746013.zip |
mm: Move change_prot_numa outside CONFIG_ARCH_USES_NUMA_PROT_NONE
change_prot_numa should work even if _PAGE_NUMA != _PAGE_PROTNONE.
On archs like ppc64 that don't use _PAGE_PROTNONE and also have
a separate page table outside linux pagetable, we just need to
make sure that when calling change_prot_numa we flush the
hardware page table entry so that next page access result in a numa
fault.
We still need to make sure we use the numa faulting logic only
when CONFIG_NUMA_BALANCING is set. This implies the migrate-on-fault
(Lazy migration) via mbind will only work if CONFIG_NUMA_BALANCING
is set.
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Reviewed-by: Rik van Riel <riel@redhat.com>
Acked-by: Mel Gorman <mgorman@suse.de>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'include/memory')
0 files changed, 0 insertions, 0 deletions