diff options
author | bibo,mao <bibo.mao@intel.com> | 2006-05-31 06:17:33 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-06-21 15:00:00 -0400 |
commit | b209a6ee49099b7500abf024f7b6b9648b5a3eac (patch) | |
tree | 6e6c614ae010aa92e9ded5e55c3a913f3c6c9dd3 | |
parent | 99dc804d9bcc2c53f4c20c291bf4e185312a1a0c (diff) |
[PATCH] PCI: cleanup unused variable about msi driver
In IA64 platform, msi driver does not use irq_vector variable, and in
x86 platform LAST_DEVICE_VECTOR should one before FIRST_SYSTEM_VECTOR,
this patch modify this.
Signed-off-by: bibo, mao <bibo.mao@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/pci/msi.c | 5 | ||||
-rw-r--r-- | include/asm-i386/msi.h | 2 | ||||
-rw-r--r-- | include/asm-x86_64/msi.h | 2 |
3 files changed, 2 insertions, 7 deletions
diff --git a/drivers/pci/msi.c b/drivers/pci/msi.c index 3ec558dc6523..a81c5b99daf3 100644 --- a/drivers/pci/msi.c +++ b/drivers/pci/msi.c | |||
@@ -35,7 +35,6 @@ static int nr_msix_devices; | |||
35 | 35 | ||
36 | #ifndef CONFIG_X86_IO_APIC | 36 | #ifndef CONFIG_X86_IO_APIC |
37 | int vector_irq[NR_VECTORS] = { [0 ... NR_VECTORS - 1] = -1}; | 37 | int vector_irq[NR_VECTORS] = { [0 ... NR_VECTORS - 1] = -1}; |
38 | u8 irq_vector[NR_IRQ_VECTORS]; | ||
39 | #endif | 38 | #endif |
40 | 39 | ||
41 | static struct msi_ops *msi_ops; | 40 | static struct msi_ops *msi_ops; |
@@ -383,10 +382,6 @@ static int msi_init(void) | |||
383 | return status; | 382 | return status; |
384 | } | 383 | } |
385 | 384 | ||
386 | #ifndef CONFIG_X86_IO_APIC | ||
387 | irq_vector[0] = FIRST_DEVICE_VECTOR; | ||
388 | #endif | ||
389 | |||
390 | if (last_alloc_vector < 0) { | 385 | if (last_alloc_vector < 0) { |
391 | pci_msi_enable = 0; | 386 | pci_msi_enable = 0; |
392 | printk(KERN_WARNING "PCI: No interrupt vectors available for MSI\n"); | 387 | printk(KERN_WARNING "PCI: No interrupt vectors available for MSI\n"); |
diff --git a/include/asm-i386/msi.h b/include/asm-i386/msi.h index ed1014235e9c..b11c4b7dfaef 100644 --- a/include/asm-i386/msi.h +++ b/include/asm-i386/msi.h | |||
@@ -9,7 +9,7 @@ | |||
9 | #include <asm/desc.h> | 9 | #include <asm/desc.h> |
10 | #include <mach_apic.h> | 10 | #include <mach_apic.h> |
11 | 11 | ||
12 | #define LAST_DEVICE_VECTOR 232 | 12 | #define LAST_DEVICE_VECTOR (FIRST_SYSTEM_VECTOR - 1) |
13 | #define MSI_TARGET_CPU_SHIFT 12 | 13 | #define MSI_TARGET_CPU_SHIFT 12 |
14 | 14 | ||
15 | extern struct msi_ops msi_apic_ops; | 15 | extern struct msi_ops msi_apic_ops; |
diff --git a/include/asm-x86_64/msi.h b/include/asm-x86_64/msi.h index 8d6d6bf8fad5..3ad2346624b2 100644 --- a/include/asm-x86_64/msi.h +++ b/include/asm-x86_64/msi.h | |||
@@ -10,7 +10,7 @@ | |||
10 | #include <asm/mach_apic.h> | 10 | #include <asm/mach_apic.h> |
11 | #include <asm/smp.h> | 11 | #include <asm/smp.h> |
12 | 12 | ||
13 | #define LAST_DEVICE_VECTOR 232 | 13 | #define LAST_DEVICE_VECTOR (FIRST_SYSTEM_VECTOR - 1) |
14 | #define MSI_TARGET_CPU_SHIFT 12 | 14 | #define MSI_TARGET_CPU_SHIFT 12 |
15 | 15 | ||
16 | extern struct msi_ops msi_apic_ops; | 16 | extern struct msi_ops msi_apic_ops; |