hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/arch/arm/mach-oxnas/platsmp.c
....@@ -1,12 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (C) 2016 Neil Armstrong <narmstrong@baylibre.com>
34 * Copyright (C) 2013 Ma Haijun <mahaijuns@gmail.com>
45 * Copyright (C) 2002 ARM Ltd.
56 * All Rights Reserved
6
- *
7
- * This program is free software; you can redistribute it and/or modify
8
- * it under the terms of the GNU General Public License version 2 as
9
- * published by the Free Software Foundation.
107 */
118 #include <linux/io.h>
129 #include <linux/delay.h>
....@@ -19,7 +16,6 @@
1916 #include <asm/smp_scu.h>
2017
2118 extern void ox820_secondary_startup(void);
22
-extern void ox820_cpu_die(unsigned int cpu);
2319
2420 static void __iomem *cpu_ctrl;
2521 static void __iomem *gic_cpu_ctrl;
....@@ -31,7 +27,8 @@
3127 #define GIC_CPU_CTRL 0x00
3228 #define GIC_CPU_CTRL_ENABLE 1
3329
34
-int __init ox820_boot_secondary(unsigned int cpu, struct task_struct *idle)
30
+static int __init ox820_boot_secondary(unsigned int cpu,
31
+ struct task_struct *idle)
3532 {
3633 /*
3734 * Write the address of secondary startup into the
....@@ -94,9 +91,6 @@
9491 static const struct smp_operations ox820_smp_ops __initconst = {
9592 .smp_prepare_cpus = ox820_smp_prepare_cpus,
9693 .smp_boot_secondary = ox820_boot_secondary,
97
-#ifdef CONFIG_HOTPLUG_CPU
98
- .cpu_die = ox820_cpu_die,
99
-#endif
10094 };
10195
10296 CPU_METHOD_OF_DECLARE(ox820_smp, "oxsemi,ox820-smp", &ox820_smp_ops);