Commit 3e7622f9 authored by Jan Beulich's avatar Jan Beulich Committed by Ingo Molnar

x86: move to .rodata/.init.data

The array is never written, and on 64-bits it's not even being used
past initial boot.
Signed-off-by: default avatarJan Beulich <jbeulich@novell.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 22f5991c
...@@ -583,7 +583,7 @@ END(syscall_badsys) ...@@ -583,7 +583,7 @@ END(syscall_badsys)
* Build the entry stubs and pointer table with * Build the entry stubs and pointer table with
* some assembler magic. * some assembler magic.
*/ */
.data .section .rodata,"a"
ENTRY(interrupt) ENTRY(interrupt)
.text .text
......
...@@ -77,7 +77,7 @@ BUILD_16_IRQS(0xc) BUILD_16_IRQS(0xd) BUILD_16_IRQS(0xe) BUILD_16_IRQS(0xf) ...@@ -77,7 +77,7 @@ BUILD_16_IRQS(0xc) BUILD_16_IRQS(0xd) BUILD_16_IRQS(0xe) BUILD_16_IRQS(0xf)
IRQ(x,c), IRQ(x,d), IRQ(x,e), IRQ(x,f) IRQ(x,c), IRQ(x,d), IRQ(x,e), IRQ(x,f)
/* for the irq vectors */ /* for the irq vectors */
static void (*interrupt[NR_VECTORS - FIRST_EXTERNAL_VECTOR])(void) = { static void (*__initdata interrupt[NR_VECTORS - FIRST_EXTERNAL_VECTOR])(void) = {
IRQLIST_16(0x2), IRQLIST_16(0x3), IRQLIST_16(0x2), IRQLIST_16(0x3),
IRQLIST_16(0x4), IRQLIST_16(0x5), IRQLIST_16(0x6), IRQLIST_16(0x7), IRQLIST_16(0x4), IRQLIST_16(0x5), IRQLIST_16(0x6), IRQLIST_16(0x7),
IRQLIST_16(0x8), IRQLIST_16(0x9), IRQLIST_16(0xa), IRQLIST_16(0xb), IRQLIST_16(0x8), IRQLIST_16(0x9), IRQLIST_16(0xa), IRQLIST_16(0xb),
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
* Interrupt entry/exit code at both C and assembly level * Interrupt entry/exit code at both C and assembly level
*/ */
extern void (*interrupt[NR_IRQS])(void); extern void (*const interrupt[NR_IRQS])(void);
#ifdef CONFIG_SMP #ifdef CONFIG_SMP
void reschedule_interrupt(void); void reschedule_interrupt(void);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment