diff options
author | Ravikiran G Thirumalai <kiran@scalex86.org> | 2005-09-06 18:17:45 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-07 19:57:33 -0400 |
commit | 6c231b7bab0aa6860cd9da2de8a064eddc34c146 (patch) | |
tree | 2a6d9dea348651ec6000b96b99fbf5bd9ccdb228 /arch/x86_64/kernel/io_apic.c | |
parent | 39ed3fdeec1290dd246dcf1da6b278566987a084 (diff) |
[PATCH] Additions to .data.read_mostly section
Mark variables which are usually accessed for reads with __readmostly.
Signed-off-by: Alok N Kataria <alokk@calsoftinc.com>
Signed-off-by: Shai Fultheim <shai@scalex86.org>
Signed-off-by: Ravikiran Thirumalai <kiran@scalex86.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/x86_64/kernel/io_apic.c')
-rw-r--r-- | arch/x86_64/kernel/io_apic.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/x86_64/kernel/io_apic.c b/arch/x86_64/kernel/io_apic.c index 76bcc4e6979d..ba1a744e9bf0 100644 --- a/arch/x86_64/kernel/io_apic.c +++ b/arch/x86_64/kernel/io_apic.c | |||
@@ -70,7 +70,7 @@ static struct irq_pin_list { | |||
70 | short apic, pin, next; | 70 | short apic, pin, next; |
71 | } irq_2_pin[PIN_MAP_SIZE]; | 71 | } irq_2_pin[PIN_MAP_SIZE]; |
72 | 72 | ||
73 | int vector_irq[NR_VECTORS] = { [0 ... NR_VECTORS - 1] = -1}; | 73 | int vector_irq[NR_VECTORS] __read_mostly = { [0 ... NR_VECTORS - 1] = -1}; |
74 | #ifdef CONFIG_PCI_MSI | 74 | #ifdef CONFIG_PCI_MSI |
75 | #define vector_to_irq(vector) \ | 75 | #define vector_to_irq(vector) \ |
76 | (platform_legacy_irq(vector) ? vector : vector_irq[vector]) | 76 | (platform_legacy_irq(vector) ? vector : vector_irq[vector]) |
@@ -683,7 +683,7 @@ static inline int IO_APIC_irq_trigger(int irq) | |||
683 | } | 683 | } |
684 | 684 | ||
685 | /* irq_vectors is indexed by the sum of all RTEs in all I/O APICs. */ | 685 | /* irq_vectors is indexed by the sum of all RTEs in all I/O APICs. */ |
686 | u8 irq_vector[NR_IRQ_VECTORS] = { FIRST_DEVICE_VECTOR , 0 }; | 686 | u8 irq_vector[NR_IRQ_VECTORS] __read_mostly = { FIRST_DEVICE_VECTOR , 0 }; |
687 | 687 | ||
688 | int assign_irq_vector(int irq) | 688 | int assign_irq_vector(int irq) |
689 | { | 689 | { |
@@ -1443,7 +1443,7 @@ static void set_ioapic_affinity_vector (unsigned int vector, | |||
1443 | * races. | 1443 | * races. |
1444 | */ | 1444 | */ |
1445 | 1445 | ||
1446 | static struct hw_interrupt_type ioapic_edge_type = { | 1446 | static struct hw_interrupt_type ioapic_edge_type __read_mostly = { |
1447 | .typename = "IO-APIC-edge", | 1447 | .typename = "IO-APIC-edge", |
1448 | .startup = startup_edge_ioapic, | 1448 | .startup = startup_edge_ioapic, |
1449 | .shutdown = shutdown_edge_ioapic, | 1449 | .shutdown = shutdown_edge_ioapic, |
@@ -1456,7 +1456,7 @@ static struct hw_interrupt_type ioapic_edge_type = { | |||
1456 | #endif | 1456 | #endif |
1457 | }; | 1457 | }; |
1458 | 1458 | ||
1459 | static struct hw_interrupt_type ioapic_level_type = { | 1459 | static struct hw_interrupt_type ioapic_level_type __read_mostly = { |
1460 | .typename = "IO-APIC-level", | 1460 | .typename = "IO-APIC-level", |
1461 | .startup = startup_level_ioapic, | 1461 | .startup = startup_level_ioapic, |
1462 | .shutdown = shutdown_level_ioapic, | 1462 | .shutdown = shutdown_level_ioapic, |
@@ -1529,7 +1529,7 @@ static void ack_lapic_irq (unsigned int irq) | |||
1529 | 1529 | ||
1530 | static void end_lapic_irq (unsigned int i) { /* nothing */ } | 1530 | static void end_lapic_irq (unsigned int i) { /* nothing */ } |
1531 | 1531 | ||
1532 | static struct hw_interrupt_type lapic_irq_type = { | 1532 | static struct hw_interrupt_type lapic_irq_type __read_mostly = { |
1533 | .typename = "local-APIC-edge", | 1533 | .typename = "local-APIC-edge", |
1534 | .startup = NULL, /* startup_irq() not used for IRQ0 */ | 1534 | .startup = NULL, /* startup_irq() not used for IRQ0 */ |
1535 | .shutdown = NULL, /* shutdown_irq() not used for IRQ0 */ | 1535 | .shutdown = NULL, /* shutdown_irq() not used for IRQ0 */ |