]> git.hungrycats.org Git - linux/commit
[PATCH] i386: put irq stacks in .bss.page_aligned section
authorAndrew Morton <akpm@osdl.org>
Sat, 29 May 2004 03:56:47 +0000 (20:56 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 29 May 2004 03:56:47 +0000 (20:56 -0700)
commitedf6250b4ce9ab44481f597487f688fec8c1a33d
treeb1d972726a6674f292f6474e10a14bb7f51d39ce
parent3a76313bfbbd344cd4588da4314901882a609ecf
[PATCH] i386: put irq stacks in .bss.page_aligned section

From: Matt Mackall <mpm@selenic.com>

I noticed that my vmlinux BSS had grown from 17k to 45k between 2.6.5 and
2.6.6.  8k was moving a pair of objects in head.S from the text section to
bss, 8k was the introduction of IRQ stacks, while the remainder (12k) was
page alignment slop, some of it spurious.  The following patch brings BSS
down to the expected 33k.

Throw the IRQ stacks into the page aligned section to avoided wasted BSS
space.  While we'd expect this to save up to 4k, this saves over 10k of BSS
here due to gcc3.3 spuriously aligning other objects in the vicinity.

Signed-off-by: Matt Mackall <mpm@selenic.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/irq.c