[tip:x86/apic] x86, irq: Kill unused pre_init_apic_IRQ0()

2014-11-26 Thread tip-bot for Jiang Liu
Commit-ID:  afc1bcbe31c10f5ae16df532398f1bb164448558
Gitweb: http://git.kernel.org/tip/afc1bcbe31c10f5ae16df532398f1bb164448558
Author: Jiang Liu 
AuthorDate: Tue, 25 Nov 2014 15:49:27 +0800
Committer:  Thomas Gleixner 
CommitDate: Wed, 26 Nov 2014 23:52:46 +0100

x86, irq: Kill unused pre_init_apic_IRQ0()

Now there's no user of pre_init_apic_IRQ0(), so kill it.

Signed-off-by: Jiang Liu 
Cc: Konrad Rzeszutek Wilk 
Cc: Tony Luck 
Cc: Joerg Roedel 
Cc: Greg Kroah-Hartman 
Cc: Bjorn Helgaas 
Cc: Benjamin Herrenschmidt 
Cc: Rafael J. Wysocki 
Cc: Randy Dunlap 
Cc: Yinghai Lu 
Cc: Borislav Petkov 
Cc: Grant Likely 
Link: 
http://lkml.kernel.org/r/1416901802-24211-4-git-send-email-jiang@linux.intel.com
Signed-off-by: Thomas Gleixner 
Tested-by: Andy Shevchenko 
---
 arch/x86/include/asm/io_apic.h |  1 -
 arch/x86/kernel/apic/io_apic.c | 17 -
 2 files changed, 18 deletions(-)

diff --git a/arch/x86/include/asm/io_apic.h b/arch/x86/include/asm/io_apic.h
index bf006cc..3207143 100644
--- a/arch/x86/include/asm/io_apic.h
+++ b/arch/x86/include/asm/io_apic.h
@@ -204,7 +204,6 @@ extern int mp_irqdomain_map(struct irq_domain *domain, 
unsigned int virq,
irq_hw_number_t hwirq);
 extern void mp_irqdomain_unmap(struct irq_domain *domain, unsigned int virq);
 extern int mp_set_gsi_attr(u32 gsi, int trigger, int polarity, int node);
-extern void __init pre_init_apic_IRQ0(void);
 
 extern void mp_save_irq(struct mpc_intsrc *m);
 
diff --git a/arch/x86/kernel/apic/io_apic.c b/arch/x86/kernel/apic/io_apic.c
index 51936be..919afe7 100644
--- a/arch/x86/kernel/apic/io_apic.c
+++ b/arch/x86/kernel/apic/io_apic.c
@@ -3088,20 +3088,3 @@ int mp_set_gsi_attr(u32 gsi, int trigger, int polarity, 
int node)
 
return ret;
 }
-
-/* Enable IOAPIC early just for system timer */
-void __init pre_init_apic_IRQ0(void)
-{
-   struct io_apic_irq_attr attr = { 0, 0, 0, 0 };
-
-   printk(KERN_INFO "Early APIC setup for system timer0\n");
-#ifndef CONFIG_SMP
-   physid_set_mask_of_physid(boot_cpu_physical_apicid,
-_cpu_present_map);
-#endif
-   setup_local_APIC();
-
-   io_apic_setup_irq_pin(0, 0, );
-   irq_set_chip_and_handler_name(0, _chip, handle_edge_irq,
- "edge");
-}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[tip:x86/apic] x86, irq: Kill unused pre_init_apic_IRQ0()

2014-11-26 Thread tip-bot for Jiang Liu
Commit-ID:  afc1bcbe31c10f5ae16df532398f1bb164448558
Gitweb: http://git.kernel.org/tip/afc1bcbe31c10f5ae16df532398f1bb164448558
Author: Jiang Liu jiang@linux.intel.com
AuthorDate: Tue, 25 Nov 2014 15:49:27 +0800
Committer:  Thomas Gleixner t...@linutronix.de
CommitDate: Wed, 26 Nov 2014 23:52:46 +0100

x86, irq: Kill unused pre_init_apic_IRQ0()

Now there's no user of pre_init_apic_IRQ0(), so kill it.

Signed-off-by: Jiang Liu jiang@linux.intel.com
Cc: Konrad Rzeszutek Wilk konrad.w...@oracle.com
Cc: Tony Luck tony.l...@intel.com
Cc: Joerg Roedel j...@8bytes.org
Cc: Greg Kroah-Hartman gre...@linuxfoundation.org
Cc: Bjorn Helgaas bhelg...@google.com
Cc: Benjamin Herrenschmidt b...@kernel.crashing.org
Cc: Rafael J. Wysocki r...@rjwysocki.net
Cc: Randy Dunlap rdun...@infradead.org
Cc: Yinghai Lu ying...@kernel.org
Cc: Borislav Petkov b...@alien8.de
Cc: Grant Likely grant.lik...@linaro.org
Link: 
http://lkml.kernel.org/r/1416901802-24211-4-git-send-email-jiang@linux.intel.com
Signed-off-by: Thomas Gleixner t...@linutronix.de
Tested-by: Andy Shevchenko andriy.shevche...@linux.intel.com
---
 arch/x86/include/asm/io_apic.h |  1 -
 arch/x86/kernel/apic/io_apic.c | 17 -
 2 files changed, 18 deletions(-)

diff --git a/arch/x86/include/asm/io_apic.h b/arch/x86/include/asm/io_apic.h
index bf006cc..3207143 100644
--- a/arch/x86/include/asm/io_apic.h
+++ b/arch/x86/include/asm/io_apic.h
@@ -204,7 +204,6 @@ extern int mp_irqdomain_map(struct irq_domain *domain, 
unsigned int virq,
irq_hw_number_t hwirq);
 extern void mp_irqdomain_unmap(struct irq_domain *domain, unsigned int virq);
 extern int mp_set_gsi_attr(u32 gsi, int trigger, int polarity, int node);
-extern void __init pre_init_apic_IRQ0(void);
 
 extern void mp_save_irq(struct mpc_intsrc *m);
 
diff --git a/arch/x86/kernel/apic/io_apic.c b/arch/x86/kernel/apic/io_apic.c
index 51936be..919afe7 100644
--- a/arch/x86/kernel/apic/io_apic.c
+++ b/arch/x86/kernel/apic/io_apic.c
@@ -3088,20 +3088,3 @@ int mp_set_gsi_attr(u32 gsi, int trigger, int polarity, 
int node)
 
return ret;
 }
-
-/* Enable IOAPIC early just for system timer */
-void __init pre_init_apic_IRQ0(void)
-{
-   struct io_apic_irq_attr attr = { 0, 0, 0, 0 };
-
-   printk(KERN_INFO Early APIC setup for system timer0\n);
-#ifndef CONFIG_SMP
-   physid_set_mask_of_physid(boot_cpu_physical_apicid,
-phys_cpu_present_map);
-#endif
-   setup_local_APIC();
-
-   io_apic_setup_irq_pin(0, 0, attr);
-   irq_set_chip_and_handler_name(0, ioapic_chip, handle_edge_irq,
- edge);
-}
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/