diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2012-07-26 15:02:16 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-07-27 03:46:15 +0400 |
commit | 881e02d298451e1788669662e72ccfd69859dae5 (patch) | |
tree | e1c7b96bd1a57e586df4534b4682f521774bcd13 /arch/sparc/include/asm/pgtable_32.h | |
parent | 7cdfbc74c8820cd33367fb3d61edcbe9829a06c5 (diff) | |
download | linux-881e02d298451e1788669662e72ccfd69859dae5.tar.xz |
sparc32: drop swapper_pg_dir
We save one page of RAM dropping swapper_pg_dir.
It was only used for an assignment in init-mm.c and we
redid this later in srmmu.c anyway.
This is likely a left-over from the sun4c removal.
To avoid a dummy variable we use a simple #define swapper_pg_dir NULL
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/include/asm/pgtable_32.h')
-rw-r--r-- | arch/sparc/include/asm/pgtable_32.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/sparc/include/asm/pgtable_32.h b/arch/sparc/include/asm/pgtable_32.h index cbbbed5cb3aa..c704f949b7ef 100644 --- a/arch/sparc/include/asm/pgtable_32.h +++ b/arch/sparc/include/asm/pgtable_32.h @@ -52,8 +52,9 @@ extern unsigned long calc_highpages(void); #define PAGE_READONLY SRMMU_PAGE_RDONLY #define PAGE_KERNEL SRMMU_PAGE_KERNEL -/* Top-level page directory */ -extern pgd_t swapper_pg_dir[1024]; +/* Top-level page directory - dummy used by init-mm. + * srmmu.c will assign the real one (which is dynamically sized) */ +#define swapper_pg_dir NULL extern void paging_init(void); |