forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/arch/arm/mach-realview/platsmp-dt.c
....@@ -1,9 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (C) 2015 Linus Walleij
3
- *
4
- * This program is free software; you can redistribute it and/or modify
5
- * it under the terms of the GNU General Public License version 2 as
6
- * published by the Free Software Foundation.
74 */
85 #include <linux/smp.h>
96 #include <linux/io.h>
....@@ -17,7 +14,6 @@
1714 #include <asm/smp_scu.h>
1815
1916 #include <plat/platsmp.h>
20
-#include "hotplug.h"
2117
2218 #define REALVIEW_SYS_FLAGSSET_OFFSET 0x30
2319
....@@ -79,6 +75,13 @@
7975 __pa_symbol(versatile_secondary_startup));
8076 }
8177
78
+#ifdef CONFIG_HOTPLUG_CPU
79
+static void realview_cpu_die(unsigned int cpu)
80
+{
81
+ return versatile_immitation_cpu_die(cpu, 0x20);
82
+}
83
+#endif
84
+
8285 static const struct smp_operations realview_dt_smp_ops __initconst = {
8386 .smp_prepare_cpus = realview_smp_prepare_cpus,
8487 .smp_secondary_init = versatile_secondary_init,