diff options
author | Tejun Heo <tj@kernel.org> | 2009-09-24 05:18:55 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2009-09-28 20:17:57 -0400 |
commit | a70c691376c7c7f94af41395848066f59501fffd (patch) | |
tree | 8fec04ca394fb1023020c85977d149c83e77e295 /arch/sparc/Kconfig | |
parent | fb59e72e7e10fd9d31f4e522f1b28254c2cc8a6c (diff) |
sparc64: implement page mapping percpu first chunk allocator
Implement page mapping percpu first chunk allocator as a fallback to
the embedding allocator. The next patch will make the embedding
allocator check distances between units to determine whether it fits
within the vmalloc area so that this fallback can be used on such
cases.
sparc64 currently has relatively small vmalloc area which makes it
impossible to create any dynamic chunks on certain configurations
leading to percpu allocation failures. This and the next patch should
allow those configurations to keep working until proper solution is
found.
While at it, mark pcpu_cpu_distance() with __init.
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/Kconfig')
-rw-r--r-- | arch/sparc/Kconfig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig index 97fca4695e0b..ac45aab741a5 100644 --- a/arch/sparc/Kconfig +++ b/arch/sparc/Kconfig | |||
@@ -102,6 +102,9 @@ config HAVE_SETUP_PER_CPU_AREA | |||
102 | config NEED_PER_CPU_EMBED_FIRST_CHUNK | 102 | config NEED_PER_CPU_EMBED_FIRST_CHUNK |
103 | def_bool y if SPARC64 | 103 | def_bool y if SPARC64 |
104 | 104 | ||
105 | config NEED_PER_CPU_PAGE_FIRST_CHUNK | ||
106 | def_bool y if SPARC64 | ||
107 | |||
105 | config GENERIC_HARDIRQS_NO__DO_IRQ | 108 | config GENERIC_HARDIRQS_NO__DO_IRQ |
106 | bool | 109 | bool |
107 | def_bool y if SPARC64 | 110 | def_bool y if SPARC64 |