aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc64
diff options
context:
space:
mode:
authortravis@sgi.com <travis@sgi.com>2008-01-30 17:27:58 -0500
committerIngo Molnar <mingo@elte.hu>2008-01-30 17:27:58 -0500
commit3afc620229ccc8214ef96fd0e7db26d79f788167 (patch)
tree0e41242b3d13f071f5aec29d2da074a1067efa59 /arch/sparc64
parent988c388ad48f790253850e369dd3e6fdf44ef603 (diff)
SPARC64: use generic percpu
Sparc64 has a way of providing the base address for the per cpu area of the currently executing processor in a global register. Sparc64 also provides a way to calculate the address of a per cpu area from a base address instead of performing an array lookup. Cc: David Miller <davem@davemloft.net> Signed-off-by: Mike Travis <travis@sgi.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/sparc64')
-rw-r--r--arch/sparc64/mm/init.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/sparc64/mm/init.c b/arch/sparc64/mm/init.c
index fbeb55d71e76..523e993ee90c 100644
--- a/arch/sparc64/mm/init.c
+++ b/arch/sparc64/mm/init.c
@@ -1328,6 +1328,11 @@ pgd_t swapper_pg_dir[2048];
1328static void sun4u_pgprot_init(void); 1328static void sun4u_pgprot_init(void);
1329static void sun4v_pgprot_init(void); 1329static void sun4v_pgprot_init(void);
1330 1330
1331/* Dummy function */
1332void __init setup_per_cpu_areas(void)
1333{
1334}
1335
1331void __init paging_init(void) 1336void __init paging_init(void)
1332{ 1337{
1333 unsigned long end_pfn, pages_avail, shift, phys_base; 1338 unsigned long end_pfn, pages_avail, shift, phys_base;