hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/arch/ia64/kernel/smpboot.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * SMP boot-related support
34 *
....@@ -24,7 +25,7 @@
2425
2526 #include <linux/module.h>
2627 #include <linux/acpi.h>
27
-#include <linux/bootmem.h>
28
+#include <linux/memblock.h>
2829 #include <linux/cpu.h>
2930 #include <linux/delay.h>
3031 #include <linux/init.h>
....@@ -46,17 +47,13 @@
4647 #include <asm/delay.h>
4748 #include <asm/io.h>
4849 #include <asm/irq.h>
49
-#include <asm/machvec.h>
5050 #include <asm/mca.h>
5151 #include <asm/page.h>
52
-#include <asm/pgalloc.h>
53
-#include <asm/pgtable.h>
5452 #include <asm/processor.h>
5553 #include <asm/ptrace.h>
5654 #include <asm/sal.h>
5755 #include <asm/tlbflush.h>
5856 #include <asm/unistd.h>
59
-#include <asm/sn/arch.h>
6057
6158 #define SMP_DEBUG 0
6259
....@@ -358,10 +355,6 @@
358355 extern void ia64_init_itm(void);
359356 extern volatile int time_keeper_id;
360357
361
-#ifdef CONFIG_PERFMON
362
- extern void pfm_init_percpu(void);
363
-#endif
364
-
365358 cpuid = smp_processor_id();
366359 phys_id = hard_smp_processor_id();
367360 itc_master = time_keeper_id;
....@@ -391,10 +384,6 @@
391384 smp_setup_percpu_timer();
392385
393386 ia64_mca_cmc_vector_setup(); /* Setup vector on AP */
394
-
395
-#ifdef CONFIG_PERFMON
396
- pfm_init_percpu();
397
-#endif
398387
399388 local_irq_enable();
400389
....@@ -451,7 +440,6 @@
451440 #endif
452441 efi_map_pal_code();
453442 cpu_init();
454
- preempt_disable();
455443 smp_callin();
456444
457445 cpu_startup_entry(CPUHP_AP_ONLINE_IDLE);
....@@ -467,7 +455,7 @@
467455 Dprintk("Sending wakeup vector %lu to AP 0x%x/0x%x.\n", ap_wakeup_vector, cpu, sapicid);
468456
469457 set_brendez_area(cpu);
470
- platform_send_ipi(cpu, ap_wakeup_vector, IA64_IPI_DM_INT, 0);
458
+ ia64_send_ipi(cpu, ap_wakeup_vector, IA64_IPI_DM_INT, 0);
471459
472460 /*
473461 * Wait 10s total for the AP to start
....@@ -655,11 +643,6 @@
655643 if (cpu == 0 && !bsp_remove_ok) {
656644 printk ("Your platform does not support removal of BSP\n");
657645 return (-EBUSY);
658
- }
659
-
660
- if (ia64_platform_is("sn2")) {
661
- if (!sn_cpu_disable_allowed(cpu))
662
- return -EBUSY;
663646 }
664647
665648 set_cpu_online(cpu, false);