hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/arch/arm/mach-vexpress/platsmp.c
....@@ -1,12 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * linux/arch/arm/mach-vexpress/platsmp.c
34 *
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/init.h>
129 #include <linux/errno.h>
....@@ -82,6 +79,13 @@
8279 vexpress_flags_set(__pa_symbol(versatile_secondary_startup));
8380 }
8481
82
+#ifdef CONFIG_HOTPLUG_CPU
83
+static void vexpress_cpu_die(unsigned int cpu)
84
+{
85
+ versatile_immitation_cpu_die(cpu, 0x40);
86
+}
87
+#endif
88
+
8589 const struct smp_operations vexpress_smp_dt_ops __initconst = {
8690 .smp_prepare_cpus = vexpress_smp_dt_prepare_cpus,
8791 .smp_secondary_init = versatile_secondary_init,