Re: [PATCH 2.6.27-rc5 1/29] mdb: export ioapic read routines anddetected ioapic count

From: Benny Halevy
Date: Sun Aug 31 2008 - 09:58:17 EST


Jeff, general comment: can you please send your patches as replies
to a leading message so they all be linked as a single thread?
Threading them together is helpful for maintaining several
versions of your patchset and it's simpler to ignore if one's
not really interested in this topic at all.

Benny

On Aug. 29, 2008, 8:47 +0300, jmerkey@xxxxxxxxxxxxxxxxxxxxx wrote:
> export ioapic read routines and detected ioapic count.
>
>
> Signed-off-by: Jeffrey Vernon Merkey (jmerkey@xxxxxxxxxxxxxxxxxxxxx)
>
> --- a/arch/x86/kernel/io_apic_32.c 2008-08-28 14:19:19.000000000 -0600
> +++ b/arch/x86/kernel/io_apic_32.c 2008-08-28 16:07:46.000000000 -0600
> @@ -75,6 +75,7 @@
> /* I/O APIC entries */
> struct mp_config_ioapic mp_ioapics[MAX_IO_APICS];
> int nr_ioapics;
> +EXPORT_SYMBOL(nr_ioapics);
>
> /* MP IRQ source entries */
> struct mp_config_intsrc mp_irqs[MAX_IRQ_SOURCES];
> @@ -120,12 +121,13 @@
> + (mp_ioapics[idx].mp_apicaddr & ~PAGE_MASK);
> }
>
> -static inline unsigned int io_apic_read(unsigned int apic, unsigned int reg)
> +unsigned int io_apic_read(unsigned int apic, unsigned int reg)
> {
> struct io_apic __iomem *io_apic = io_apic_base(apic);
> writel(reg, &io_apic->index);
> return readl(&io_apic->data);
> }
> +EXPORT_SYMBOL(io_apic_read);
>
> static inline void io_apic_write(unsigned int apic, unsigned int reg, unsigned int value)
> {
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/