Skip to contentSkip to conversation

arch/sh: use __page_aligned_bss

PATCH In review Jeremy Fitzhardinge 2 participants 2 messages May 28, 2008 – May 29, 2008 SuperH

lore
Share & tools
lore
#0 lore raw

PATCH 3/3 arch/sh: use __page_aligned_bss

The patch "make page-aligned data and bss less fragile" introduces __page_aligned_data and __page_aligned_bss to make sure that page aligned things remain so, even if there are non-page-sized page-aligned things.

This paragraph converts the two C instances of page-aligned bss variables to use them. It's a purely decorative patch.

---
arch/sh/kernel/irq.c | 8 +++-----

1 file changed, 3 insertions(+), 5 deletions(-)

===================================================================

arch/sh/kernel/irq.c +0 -0
@@ -9,6 +9,7 @@

#include <linux/irq.h>
#include <linux/interrupt.h>
#include <linux/module.h>
+#include <linux/linkage.h>
#include <linux/kernel_stat.h>
#include <linux/seq_file.h>
#include <asm/processor.h>
@@ -157,11 +158,8 @@
}

#ifdef CONFIG_IRQSTACKS
-static char softirq_stack[NR_CPUS * THREAD_SIZE]
- __attribute__((__section__(".bss.page_aligned")));
-
-static char hardirq_stack[NR_CPUS * THREAD_SIZE]
- __attribute__((__section__(".bss.page_aligned")));
+static char softirq_stack[NR_CPUS * THREAD_SIZE] __page_aligned_bss; +static char hardirq_stack[NR_CPUS * THREAD_SIZE] __page_aligned_bss;

/*
* allocate per-cpu stacks for hardirq and for softirq processing

Acked-by on v1 3/3
#1 lore raw
Quoted 11 lines · Jeremy Fitzhardinge

The patch "make page-aligned data and bss less fragile" introduces __page_aligned_data and __page_aligned_bss to make sure that page aligned things remain so, even if there are non-page-sized page-aligned things.

This paragraph converts the two C instances of page-aligned bss variables to use them. It's a purely decorative patch.

If the first patch hits mainline then I'll take this directly in to my tree, otherwise: