David Rientjes
4edd7ceff0
mm, hotplug: avoid compiling memory hotremove functions when disabled
...
__remove_pages() is only necessary for CONFIG_MEMORY_HOTREMOVE. PowerPC
pseries will return -EOPNOTSUPP if unsupported.
Adding an #ifdef causes several other functions it depends on to also
become unnecessary, which saves in .text when disabled (it's disabled in
most defconfigs besides powerpc, including x86). remove_memory_block()
becomes static since it is not referenced outside of
drivers/base/memory.c.
Build tested on x86 and powerpc with CONFIG_MEMORY_HOTREMOVE both enabled
and disabled.
Signed-off-by: David Rientjes <rientjes@google.com>
Acked-by: Toshi Kani <toshi.kani@hp.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Wen Congyang <wency@cn.fujitsu.com>
Cc: Tang Chen <tangchen@cn.fujitsu.com>
Cc: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2013-04-29 15:54:37 -07:00
..
alpha
mm/alpha: use common help functions to free reserved pages
2013-04-29 15:54:29 -07:00
arc
mm/arc: use common help functions to free reserved pages
2013-04-29 15:54:31 -07:00
arm
arm: set the page table freeing ceiling to TASK_SIZE
2013-04-29 15:54:34 -07:00
arm64
sparse-vmemmap: specify vmemmap population range in bytes
2013-04-29 15:54:35 -07:00
avr32
mm/avr32: use common help functions to free reserved pages
2013-04-29 15:54:29 -07:00
blackfin
mm/blackfin: use common help functions to free reserved pages
2013-04-29 15:54:29 -07:00
c6x
mm/c6x: use common help functions to free reserved pages
2013-04-29 15:54:29 -07:00
cris
mm/cris: use common help functions to free reserved pages
2013-04-29 15:54:29 -07:00
frv
mm/FRV: use free_highmem_page() to free highmem pages into buddy system
2013-04-29 15:54:32 -07:00
h8300
mm/h8300: use common help functions to free reserved pages
2013-04-29 15:54:29 -07:00
hexagon
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
2013-02-26 20:16:07 -08:00
ia64
mm: speedup in __early_pfn_to_nid
2013-04-29 15:54:35 -07:00
m32r
mm/m32r: use common help functions to free reserved pages
2013-04-29 15:54:30 -07:00
m68k
mm/m68k: use common help functions to free reserved pages
2013-04-29 15:54:30 -07:00
metag
mm/metag: use free_highmem_page() to free highmem pages into buddy system
2013-04-29 15:54:32 -07:00
microblaze
mm/microblaze: use free_highmem_page() to free highmem pages into buddy system
2013-04-29 15:54:32 -07:00
mips
mm/hugetlb: add more arch-defined huge_pte functions
2013-04-29 15:54:33 -07:00
mn10300
mm/mn10300: use common help functions to free reserved pages
2013-04-29 15:54:30 -07:00
openrisc
mm/openrisc: use common help functions to free reserved pages
2013-04-29 15:54:30 -07:00
parisc
mm/parisc: use common help functions to free reserved pages
2013-04-29 15:54:30 -07:00
powerpc
mm, hotplug: avoid compiling memory hotremove functions when disabled
2013-04-29 15:54:37 -07:00
s390
sparse-vmemmap: specify vmemmap population range in bytes
2013-04-29 15:54:35 -07:00
score
mm/score: use common help functions to free reserved pages
2013-04-29 15:54:31 -07:00
sh
mm/hugetlb: add more arch-defined huge_pte functions
2013-04-29 15:54:33 -07:00
sparc
sparse-vmemmap: specify vmemmap population range in bytes
2013-04-29 15:54:35 -07:00
tile
mm, vmalloc: change iterating a vmlist to find_vm_area()
2013-04-29 15:54:33 -07:00
um
mm/um: use free_highmem_page() to free highmem pages into buddy system
2013-04-29 15:54:32 -07:00
unicore32
mm, vmalloc: change iterating a vmlist to find_vm_area()
2013-04-29 15:54:33 -07:00
x86
x86/mm/numa: use setup_nr_node_ids() instead of opencoding.
2013-04-29 15:54:36 -07:00
xtensa
mm/xtensa: use common help functions to free reserved pages
2013-04-29 15:54:31 -07:00
.gitignore
Kconfig
Select VIRT_TO_BUS directly where needed
2013-03-12 11:16:40 -07:00