diff options
author | Tejun Heo <tj@kernel.org> | 2009-02-23 21:57:20 -0500 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2009-02-23 21:57:20 -0500 |
commit | c132937556f56ee4b831ef4b23f1846e05fde102 (patch) | |
tree | 0f93037ff2ebbdc321ebd0bbfc4752823c8d6a0e /arch/x86/Kconfig | |
parent | cb83b42e23bd6c4bf91793a320fbe83787c13596 (diff) |
bootmem: clean up arch-specific bootmem wrapping
Impact: cleaner and consistent bootmem wrapping
By setting CONFIG_HAVE_ARCH_BOOTMEM_NODE, archs can define
arch-specific wrappers for bootmem allocation. However, this is done
a bit strangely in that only the high level convenience macros can be
changed while lower level, but still exported, interface functions
can't be wrapped. This not only is messy but also leads to strange
situation where alloc_bootmem() does what the arch wants it to do but
the equivalent __alloc_bootmem() call doesn't although they should be
able to be used interchangeably.
This patch updates bootmem such that archs can override / wrap the
backend function - alloc_bootmem_core() instead of the highlevel
interface functions to allow simpler and consistent wrapping. Also,
HAVE_ARCH_BOOTMEM_NODE is renamed to HAVE_ARCH_BOOTMEM.
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Johannes Weiner <hannes@saeurebad.de>
Diffstat (limited to 'arch/x86/Kconfig')
-rw-r--r-- | arch/x86/Kconfig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index d3f6eadfd4ba..6fd3b2302ed9 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig | |||
@@ -1111,7 +1111,7 @@ config NODES_SHIFT | |||
1111 | Specify the maximum number of NUMA Nodes available on the target | 1111 | Specify the maximum number of NUMA Nodes available on the target |
1112 | system. Increases memory reserved to accomodate various tables. | 1112 | system. Increases memory reserved to accomodate various tables. |
1113 | 1113 | ||
1114 | config HAVE_ARCH_BOOTMEM_NODE | 1114 | config HAVE_ARCH_BOOTMEM |
1115 | def_bool y | 1115 | def_bool y |
1116 | depends on X86_32 && NUMA | 1116 | depends on X86_32 && NUMA |
1117 | 1117 | ||