Commit e56ca157 authored by Alexander Nyberg's avatar Alexander Nyberg Committed by Linus Torvalds

[PATCH] x86_64: assign_irq_vector should not be marked __init

This box crashed at startup today and I noticed that some modules will
need to have assign_irq_vector() available although it is marked as
__init.

Looks like it was done for i386 in but not x86_64...
Signed-off-by: default avatarAlexander Nyberg <alexn@dsv.su.se>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 15366dc6
...@@ -654,11 +654,7 @@ static inline int IO_APIC_irq_trigger(int irq) ...@@ -654,11 +654,7 @@ static inline int IO_APIC_irq_trigger(int irq)
/* irq_vectors is indexed by the sum of all RTEs in all I/O APICs. */ /* irq_vectors is indexed by the sum of all RTEs in all I/O APICs. */
u8 irq_vector[NR_IRQ_VECTORS] = { FIRST_DEVICE_VECTOR , 0 }; u8 irq_vector[NR_IRQ_VECTORS] = { FIRST_DEVICE_VECTOR , 0 };
#ifdef CONFIG_PCI_MSI
int assign_irq_vector(int irq) int assign_irq_vector(int irq)
#else
int __init assign_irq_vector(int irq)
#endif
{ {
static int current_vector = FIRST_DEVICE_VECTOR, offset = 0; static int current_vector = FIRST_DEVICE_VECTOR, offset = 0;
......
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