diff options
author | Ian Campbell <ijc@hellion.org.uk> | 2008-02-17 14:09:42 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-17 11:40:47 -0400 |
commit | c92a7a54d6579c9c01374092e7b61a6161f2ef70 (patch) | |
tree | 7c08eb91ec1bea625ad4a72889cc967436a39821 | |
parent | edc05e6de3e2fd203da21ba984b19d92e5398b62 (diff) |
x86: reduce arch/x86/mm/ioremap.o size
> Don't we have a special section for page-aligned data so it doesn't
> waste most of two pages?
We have .bss.page_aligned and it seems appropriate to use it.
text data bss dec hex filename
- 3388 8236 4 11628 2d6c ../build-32/arch/x86/mm/ioremap.o
+ 3388 48 4100 7536 1d70 ../build-32/arch/x86/mm/ioremap.o
Signed-off-by: Ian Campbell <ijc@hellion.org.uk>
Cc: Matt Mackall <mpm@selenic.com>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Huang Ying <ying.huang@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r-- | arch/x86/mm/ioremap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/mm/ioremap.c b/arch/x86/mm/ioremap.c index 794895c6dcc9..868bbde74698 100644 --- a/arch/x86/mm/ioremap.c +++ b/arch/x86/mm/ioremap.c | |||
@@ -272,8 +272,8 @@ static int __init early_ioremap_debug_setup(char *str) | |||
272 | early_param("early_ioremap_debug", early_ioremap_debug_setup); | 272 | early_param("early_ioremap_debug", early_ioremap_debug_setup); |
273 | 273 | ||
274 | static __initdata int after_paging_init; | 274 | static __initdata int after_paging_init; |
275 | static __initdata pte_t bm_pte[PAGE_SIZE/sizeof(pte_t)] | 275 | static pte_t bm_pte[PAGE_SIZE/sizeof(pte_t)] |
276 | __attribute__((aligned(PAGE_SIZE))); | 276 | __section(.bss.page_aligned); |
277 | 277 | ||
278 | static inline pmd_t * __init early_ioremap_pmd(unsigned long addr) | 278 | static inline pmd_t * __init early_ioremap_pmd(unsigned long addr) |
279 | { | 279 | { |