summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2019-08-13 03:25:05 -0400
committerTony Luck <tony.luck@intel.com>2019-08-16 14:33:57 -0400
commit2e0f2b1659ddd7bb005ca0bf9f92915904974676 (patch)
tree4cec4f2568ad1f0dc2540d9ca81ffd72a394e48f
parent768557ca5b062e14ccdc55d255f7ff50bb90d40a (diff)
ia64: remove CONFIG_ACPI ifdefs
Now that hpsim support is gone, CONFIG_ACPI is forced on for ia64, and we can remove a few ifdefs for it. Acked-by: Tom Vaden <tom.vaden@hpe.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Link: https://lkml.kernel.org/r/20190813072514.23299-20-hch@lst.de Signed-off-by: Tony Luck <tony.luck@intel.com>
-rw-r--r--arch/ia64/include/asm/acpi.h4
-rw-r--r--arch/ia64/kernel/Makefile4
-rw-r--r--arch/ia64/kernel/iosapic.c2
-rw-r--r--arch/ia64/kernel/irq_ia64.c2
-rw-r--r--arch/ia64/kernel/mca.c18
-rw-r--r--arch/ia64/kernel/setup.c10
-rw-r--r--arch/ia64/kernel/topology.c4
7 files changed, 8 insertions, 36 deletions
diff --git a/arch/ia64/include/asm/acpi.h b/arch/ia64/include/asm/acpi.h
index 0afb3bc4b4a1..01c1c269aa13 100644
--- a/arch/ia64/include/asm/acpi.h
+++ b/arch/ia64/include/asm/acpi.h
@@ -17,7 +17,7 @@
17#include <linux/numa.h> 17#include <linux/numa.h>
18#include <asm/numa.h> 18#include <asm/numa.h>
19 19
20#ifdef CONFIG_ACPI 20
21extern int acpi_lapic; 21extern int acpi_lapic;
22#define acpi_disabled 0 /* ACPI always enabled on IA64 */ 22#define acpi_disabled 0 /* ACPI always enabled on IA64 */
23#define acpi_noirq 0 /* ACPI always enabled on IA64 */ 23#define acpi_noirq 0 /* ACPI always enabled on IA64 */
@@ -28,7 +28,7 @@ static inline bool acpi_has_cpu_in_madt(void)
28{ 28{
29 return !!acpi_lapic; 29 return !!acpi_lapic;
30} 30}
31#endif 31
32#define acpi_processor_cstate_check(x) (x) /* no idle limits on IA64 :) */ 32#define acpi_processor_cstate_check(x) (x) /* no idle limits on IA64 :) */
33static inline void disable_acpi(void) { } 33static inline void disable_acpi(void) { }
34 34
diff --git a/arch/ia64/kernel/Makefile b/arch/ia64/kernel/Makefile
index 3ada440ff893..dbde36702cf2 100644
--- a/arch/ia64/kernel/Makefile
+++ b/arch/ia64/kernel/Makefile
@@ -12,9 +12,9 @@ extra-y := head.o vmlinux.lds
12obj-y := entry.o efi.o efi_stub.o gate-data.o fsys.o ia64_ksyms.o irq.o irq_ia64.o \ 12obj-y := entry.o efi.o efi_stub.o gate-data.o fsys.o ia64_ksyms.o irq.o irq_ia64.o \
13 irq_lsapic.o ivt.o machvec.o pal.o patch.o process.o perfmon.o ptrace.o sal.o \ 13 irq_lsapic.o ivt.o machvec.o pal.o patch.o process.o perfmon.o ptrace.o sal.o \
14 salinfo.o setup.o signal.o sys_ia64.o time.o traps.o unaligned.o \ 14 salinfo.o setup.o signal.o sys_ia64.o time.o traps.o unaligned.o \
15 unwind.o mca.o mca_asm.o topology.o dma-mapping.o iosapic.o 15 unwind.o mca.o mca_asm.o topology.o dma-mapping.o iosapic.o acpi.o \
16 acpi-ext.o
16 17
17obj-$(CONFIG_ACPI) += acpi.o acpi-ext.o
18obj-$(CONFIG_IA64_BRL_EMU) += brl_emu.o 18obj-$(CONFIG_IA64_BRL_EMU) += brl_emu.o
19 19
20obj-$(CONFIG_IA64_PALINFO) += palinfo.o 20obj-$(CONFIG_IA64_PALINFO) += palinfo.o
diff --git a/arch/ia64/kernel/iosapic.c b/arch/ia64/kernel/iosapic.c
index 9e49fd006859..2d25958a7ed7 100644
--- a/arch/ia64/kernel/iosapic.c
+++ b/arch/ia64/kernel/iosapic.c
@@ -643,10 +643,8 @@ get_target_cpu (unsigned int gsi, int irq)
643 if (!cpu_online(smp_processor_id())) 643 if (!cpu_online(smp_processor_id()))
644 return cpu_physical_id(smp_processor_id()); 644 return cpu_physical_id(smp_processor_id());
645 645
646#ifdef CONFIG_ACPI
647 if (cpe_vector > 0 && irq_to_vector(irq) == IA64_CPEP_VECTOR) 646 if (cpe_vector > 0 && irq_to_vector(irq) == IA64_CPEP_VECTOR)
648 return get_cpei_target_cpu(); 647 return get_cpei_target_cpu();
649#endif
650 648
651#ifdef CONFIG_NUMA 649#ifdef CONFIG_NUMA
652 { 650 {
diff --git a/arch/ia64/kernel/irq_ia64.c b/arch/ia64/kernel/irq_ia64.c
index e3874734b149..b989731bbeac 100644
--- a/arch/ia64/kernel/irq_ia64.c
+++ b/arch/ia64/kernel/irq_ia64.c
@@ -633,9 +633,7 @@ ia64_native_register_ipi(void)
633void __init 633void __init
634init_IRQ (void) 634init_IRQ (void)
635{ 635{
636#ifdef CONFIG_ACPI
637 acpi_boot_init(); 636 acpi_boot_init();
638#endif
639 ia64_register_ipi(); 637 ia64_register_ipi();
640 register_percpu_irq(IA64_SPURIOUS_INT_VECTOR, NULL); 638 register_percpu_irq(IA64_SPURIOUS_INT_VECTOR, NULL);
641#ifdef CONFIG_SMP 639#ifdef CONFIG_SMP
diff --git a/arch/ia64/kernel/mca.c b/arch/ia64/kernel/mca.c
index f72b05fe918b..a7f05883935b 100644
--- a/arch/ia64/kernel/mca.c
+++ b/arch/ia64/kernel/mca.c
@@ -149,9 +149,7 @@ static ia64_mc_info_t ia64_mc_info;
149#define CPE_HISTORY_LENGTH 5 149#define CPE_HISTORY_LENGTH 5
150#define CMC_HISTORY_LENGTH 5 150#define CMC_HISTORY_LENGTH 5
151 151
152#ifdef CONFIG_ACPI
153static struct timer_list cpe_poll_timer; 152static struct timer_list cpe_poll_timer;
154#endif
155static struct timer_list cmc_poll_timer; 153static struct timer_list cmc_poll_timer;
156/* 154/*
157 * This variable tells whether we are currently in polling mode. 155 * This variable tells whether we are currently in polling mode.
@@ -532,8 +530,6 @@ int mca_recover_range(unsigned long addr)
532} 530}
533EXPORT_SYMBOL_GPL(mca_recover_range); 531EXPORT_SYMBOL_GPL(mca_recover_range);
534 532
535#ifdef CONFIG_ACPI
536
537int cpe_vector = -1; 533int cpe_vector = -1;
538int ia64_cpe_irq = -1; 534int ia64_cpe_irq = -1;
539 535
@@ -595,9 +591,6 @@ out:
595 return IRQ_HANDLED; 591 return IRQ_HANDLED;
596} 592}
597 593
598#endif /* CONFIG_ACPI */
599
600#ifdef CONFIG_ACPI
601/* 594/*
602 * ia64_mca_register_cpev 595 * ia64_mca_register_cpev
603 * 596 *
@@ -625,7 +618,6 @@ ia64_mca_register_cpev (int cpev)
625 IA64_MCA_DEBUG("%s: corrected platform error " 618 IA64_MCA_DEBUG("%s: corrected platform error "
626 "vector %#x registered\n", __func__, cpev); 619 "vector %#x registered\n", __func__, cpev);
627} 620}
628#endif /* CONFIG_ACPI */
629 621
630/* 622/*
631 * ia64_mca_cmc_vector_setup 623 * ia64_mca_cmc_vector_setup
@@ -1540,8 +1532,6 @@ ia64_mca_cmc_poll (struct timer_list *unused)
1540 * Outputs 1532 * Outputs
1541 * handled 1533 * handled
1542 */ 1534 */
1543#ifdef CONFIG_ACPI
1544
1545static irqreturn_t 1535static irqreturn_t
1546ia64_mca_cpe_int_caller(int cpe_irq, void *arg) 1536ia64_mca_cpe_int_caller(int cpe_irq, void *arg)
1547{ 1537{
@@ -1604,8 +1594,6 @@ ia64_mca_cpe_poll (struct timer_list *unused)
1604 IA64_IPI_DM_INT, 0); 1594 IA64_IPI_DM_INT, 0);
1605} 1595}
1606 1596
1607#endif /* CONFIG_ACPI */
1608
1609static int 1597static int
1610default_monarch_init_process(struct notifier_block *self, unsigned long val, void *data) 1598default_monarch_init_process(struct notifier_block *self, unsigned long val, void *data)
1611{ 1599{
@@ -1799,7 +1787,6 @@ static struct irqaction mca_wkup_irqaction = {
1799 .name = "mca_wkup" 1787 .name = "mca_wkup"
1800}; 1788};
1801 1789
1802#ifdef CONFIG_ACPI
1803static struct irqaction mca_cpe_irqaction = { 1790static struct irqaction mca_cpe_irqaction = {
1804 .handler = ia64_mca_cpe_int_handler, 1791 .handler = ia64_mca_cpe_int_handler,
1805 .name = "cpe_hndlr" 1792 .name = "cpe_hndlr"
@@ -1809,7 +1796,6 @@ static struct irqaction mca_cpep_irqaction = {
1809 .handler = ia64_mca_cpe_int_caller, 1796 .handler = ia64_mca_cpe_int_caller,
1810 .name = "cpe_poll" 1797 .name = "cpe_poll"
1811}; 1798};
1812#endif /* CONFIG_ACPI */
1813 1799
1814/* Minimal format of the MCA/INIT stacks. The pseudo processes that run on 1800/* Minimal format of the MCA/INIT stacks. The pseudo processes that run on
1815 * these stacks can never sleep, they cannot return from the kernel to user 1801 * these stacks can never sleep, they cannot return from the kernel to user
@@ -2081,10 +2067,8 @@ void __init ia64_mca_irq_init(void)
2081 /* Setup the MCA wakeup interrupt vector */ 2067 /* Setup the MCA wakeup interrupt vector */
2082 register_percpu_irq(IA64_MCA_WAKEUP_VECTOR, &mca_wkup_irqaction); 2068 register_percpu_irq(IA64_MCA_WAKEUP_VECTOR, &mca_wkup_irqaction);
2083 2069
2084#ifdef CONFIG_ACPI
2085 /* Setup the CPEI/P handler */ 2070 /* Setup the CPEI/P handler */
2086 register_percpu_irq(IA64_CPEP_VECTOR, &mca_cpep_irqaction); 2071 register_percpu_irq(IA64_CPEP_VECTOR, &mca_cpep_irqaction);
2087#endif
2088} 2072}
2089 2073
2090/* 2074/*
@@ -2112,7 +2096,6 @@ ia64_mca_late_init(void)
2112 ia64_mca_cpu_online, NULL); 2096 ia64_mca_cpu_online, NULL);
2113 IA64_MCA_DEBUG("%s: CMCI/P setup and enabled.\n", __func__); 2097 IA64_MCA_DEBUG("%s: CMCI/P setup and enabled.\n", __func__);
2114 2098
2115#ifdef CONFIG_ACPI
2116 /* Setup the CPEI/P vector and handler */ 2099 /* Setup the CPEI/P vector and handler */
2117 cpe_vector = acpi_request_vector(ACPI_INTERRUPT_CPEI); 2100 cpe_vector = acpi_request_vector(ACPI_INTERRUPT_CPEI);
2118 timer_setup(&cpe_poll_timer, ia64_mca_cpe_poll, 0); 2101 timer_setup(&cpe_poll_timer, ia64_mca_cpe_poll, 0);
@@ -2143,7 +2126,6 @@ ia64_mca_late_init(void)
2143 IA64_MCA_DEBUG("%s: CPEP setup and enabled.\n", __func__); 2126 IA64_MCA_DEBUG("%s: CPEP setup and enabled.\n", __func__);
2144 } 2127 }
2145 } 2128 }
2146#endif
2147 2129
2148 return 0; 2130 return 0;
2149} 2131}
diff --git a/arch/ia64/kernel/setup.c b/arch/ia64/kernel/setup.c
index 42ef03ce2fd4..8d47836d932c 100644
--- a/arch/ia64/kernel/setup.c
+++ b/arch/ia64/kernel/setup.c
@@ -537,21 +537,19 @@ setup_arch (char **cmdline_p)
537 if (early_console_setup(*cmdline_p) == 0) 537 if (early_console_setup(*cmdline_p) == 0)
538 mark_bsp_online(); 538 mark_bsp_online();
539 539
540#ifdef CONFIG_ACPI
541 /* Initialize the ACPI boot-time table parser */ 540 /* Initialize the ACPI boot-time table parser */
542 acpi_table_init(); 541 acpi_table_init();
543 early_acpi_boot_init(); 542 early_acpi_boot_init();
544# ifdef CONFIG_ACPI_NUMA 543#ifdef CONFIG_ACPI_NUMA
545 acpi_numa_init(); 544 acpi_numa_init();
546 acpi_numa_fixup(); 545 acpi_numa_fixup();
547# ifdef CONFIG_ACPI_HOTPLUG_CPU 546#ifdef CONFIG_ACPI_HOTPLUG_CPU
548 prefill_possible_map(); 547 prefill_possible_map();
549# endif 548#endif
550 per_cpu_scan_finalize((cpumask_weight(&early_cpu_possible_map) == 0 ? 549 per_cpu_scan_finalize((cpumask_weight(&early_cpu_possible_map) == 0 ?
551 32 : cpumask_weight(&early_cpu_possible_map)), 550 32 : cpumask_weight(&early_cpu_possible_map)),
552 additional_cpus > 0 ? additional_cpus : 0); 551 additional_cpus > 0 ? additional_cpus : 0);
553# endif 552#endif /* CONFIG_ACPI_NUMA */
554#endif /* CONFIG_APCI_BOOT */
555 553
556#ifdef CONFIG_SMP 554#ifdef CONFIG_SMP
557 smp_build_cpu_map(); 555 smp_build_cpu_map();
diff --git a/arch/ia64/kernel/topology.c b/arch/ia64/kernel/topology.c
index e311ee13e61d..09fc385c2acd 100644
--- a/arch/ia64/kernel/topology.c
+++ b/arch/ia64/kernel/topology.c
@@ -42,7 +42,6 @@ EXPORT_SYMBOL_GPL(arch_fix_phys_package_id);
42#ifdef CONFIG_HOTPLUG_CPU 42#ifdef CONFIG_HOTPLUG_CPU
43int __ref arch_register_cpu(int num) 43int __ref arch_register_cpu(int num)
44{ 44{
45#ifdef CONFIG_ACPI
46 /* 45 /*
47 * If CPEI can be re-targeted or if this is not 46 * If CPEI can be re-targeted or if this is not
48 * CPEI target, then it is hotpluggable 47 * CPEI target, then it is hotpluggable
@@ -50,7 +49,6 @@ int __ref arch_register_cpu(int num)
50 if (can_cpei_retarget() || !is_cpu_cpei_target(num)) 49 if (can_cpei_retarget() || !is_cpu_cpei_target(num))
51 sysfs_cpus[num].cpu.hotpluggable = 1; 50 sysfs_cpus[num].cpu.hotpluggable = 1;
52 map_cpu_to_node(num, node_cpuid[num].nid); 51 map_cpu_to_node(num, node_cpuid[num].nid);
53#endif
54 return register_cpu(&sysfs_cpus[num].cpu, num); 52 return register_cpu(&sysfs_cpus[num].cpu, num);
55} 53}
56EXPORT_SYMBOL(arch_register_cpu); 54EXPORT_SYMBOL(arch_register_cpu);
@@ -58,9 +56,7 @@ EXPORT_SYMBOL(arch_register_cpu);
58void __ref arch_unregister_cpu(int num) 56void __ref arch_unregister_cpu(int num)
59{ 57{
60 unregister_cpu(&sysfs_cpus[num].cpu); 58 unregister_cpu(&sysfs_cpus[num].cpu);
61#ifdef CONFIG_ACPI
62 unmap_cpu_from_node(num, cpu_to_node(num)); 59 unmap_cpu_from_node(num, cpu_to_node(num));
63#endif
64} 60}
65EXPORT_SYMBOL(arch_unregister_cpu); 61EXPORT_SYMBOL(arch_unregister_cpu);
66#else 62#else