Re: [Patch v4 14/16] x86, irq: Introduce helper to check whether an IOAPIC has been registered

2014-09-11 Thread Jiang Liu
On 2014/9/11 4:08, Thomas Gleixner wrote: > On Wed, 10 Sep 2014, Jiang Liu wrote: >> On 2014/9/9 20:37, Thomas Gleixner wrote: + ret = mp_ioapic_registered(gsi_base); + up_write(&acpi_ioapic_rwsem); + + return ret; +} >>> >>> So I assume that this is for a particular

Re: [Patch v4 14/16] x86, irq: Introduce helper to check whether an IOAPIC has been registered

2014-09-10 Thread Thomas Gleixner
On Wed, 10 Sep 2014, Jiang Liu wrote: > On 2014/9/9 20:37, Thomas Gleixner wrote: > >> + ret = mp_ioapic_registered(gsi_base); > >> + up_write(&acpi_ioapic_rwsem); > >> + > >> + return ret; > >> +} > > > > So I assume that this is for a particular caller in the apci ioapic > > hotplug code and

Re: [Patch v4 14/16] x86, irq: Introduce helper to check whether an IOAPIC has been registered

2014-09-09 Thread Jiang Liu
On 2014/9/9 20:37, Thomas Gleixner wrote: > On Thu, 28 Aug 2014, Jiang Liu wrote: > >> Introduce acpi_ioapic_registered() to check whether an IOAPIC has already >> been registered, it will be used when enabling IOAPIC hotplug. >> >> Signed-off-by: Jiang Liu >> --- >> arch/x86/include/asm/io_ap

Re: [Patch v4 14/16] x86, irq: Introduce helper to check whether an IOAPIC has been registered

2014-09-09 Thread Thomas Gleixner
On Thu, 28 Aug 2014, Jiang Liu wrote: > Introduce acpi_ioapic_registered() to check whether an IOAPIC has already > been registered, it will be used when enabling IOAPIC hotplug. > > Signed-off-by: Jiang Liu > --- > arch/x86/include/asm/io_apic.h |1 + > arch/x86/kernel/acpi/boot.c| 1

[Patch v4 14/16] x86, irq: Introduce helper to check whether an IOAPIC has been registered

2014-08-27 Thread Jiang Liu
Introduce acpi_ioapic_registered() to check whether an IOAPIC has already been registered, it will be used when enabling IOAPIC hotplug. Signed-off-by: Jiang Liu --- arch/x86/include/asm/io_apic.h |1 + arch/x86/kernel/acpi/boot.c| 11 +++ arch/x86/kernel/apic/io_apic.c | 11