android_kernel_motorola_sm6375/arch/tile
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hugh Dickins fd8cfd3000 arch: fix has_transparent_hugepage()
I've just discovered that the useful-sounding has_transparent_hugepage()
is actually an architecture-dependent minefield: on some arches it only
builds if CONFIG_TRANSPARENT_HUGEPAGE=y, on others it's also there when
not, but on some of those (arm and arm64) it then gives the wrong
answer; and on mips alone it's marked __init, which would crash if
called later (but so far it has not been called later).

Straighten this out: make it available to all configs, with a sensible
default in asm-generic/pgtable.h, removing its definitions from those
arches (arc, arm, arm64, sparc, tile) which are served by the default,
adding #define has_transparent_hugepage has_transparent_hugepage to
those (mips, powerpc, s390, x86) which need to override the default at
runtime, and removing the __init from mips (but maybe that kind of code
should be avoided after init: set a static variable the first time it's
called).

Signed-off-by: Hugh Dickins <[email protected]>
Cc: "Kirill A. Shutemov" <[email protected]>
Cc: Andrea Arcangeli <[email protected]>
Cc: Andres Lagar-Cavilla <[email protected]>
Cc: Yang Shi <[email protected]>
Cc: Ning Qu <[email protected]>
Cc: Mel Gorman <[email protected]>
Cc: Konstantin Khlebnikov <[email protected]>
Acked-by: David S. Miller <[email protected]>
Acked-by: Vineet Gupta <[email protected]>		[arch/arc]
Acked-by: Gerald Schaefer <[email protected]>	[arch/s390]
Acked-by: Ingo Molnar <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2016-05-19 19:12:14 -07:00
..
configs net: dsa: mv88e6xxx: factorize the switch driver 2016-05-09 14:26:13 -04:00
gxio tile: use global strscpy() rather than private copy 2015-09-10 15:37:02 -04:00
include arch: fix has_transparent_hugepage() 2016-05-19 19:12:14 -07:00
kernel include/linux/nodemask.h: create next_node_in() helper 2016-05-19 19:12:14 -07:00
kvm rcu: Make SRCU optional by using CONFIG_SRCU 2015-01-06 11:04:29 -08:00
lib tile: Provide atomic_{or,xor,and} 2015-07-27 14:06:24 +02:00
mm tile: mm: use hugetlb_bad_size() 2016-05-19 19:12:14 -07:00
Kbuild
Kconfig PCI: Include pci/hotplug Kconfig directly from pci/Kconfig 2016-03-08 15:10:48 -06:00
Kconfig.debug
Makefile