hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/arch/powerpc/platforms/powernv/smp.c
....@@ -1,12 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * SMP support for PowerNV machines.
34 *
45 * Copyright 2011 IBM Corp.
5
- *
6
- * This program is free software; you can redistribute it and/or
7
- * modify it under the terms of the GNU General Public License
8
- * as published by the Free Software Foundation; either version
9
- * 2 of the License, or (at your option) any later version.
106 */
117
128 #include <linux/kernel.h>
....@@ -147,6 +143,9 @@
147143 xive_smp_disable_cpu();
148144 else
149145 xics_migrate_irqs_away();
146
+
147
+ cleanup_cpu_mmu_context();
148
+
150149 return 0;
151150 }
152151
....@@ -162,7 +161,7 @@
162161 }
163162 }
164163
165
-static void pnv_smp_cpu_kill_self(void)
164
+static void pnv_cpu_offline_self(void)
166165 {
167166 unsigned long srr1, unexpected_mask, wmask;
168167 unsigned int cpu;
....@@ -421,6 +420,7 @@
421420 #ifdef CONFIG_HOTPLUG_CPU
422421 .cpu_disable = pnv_smp_cpu_disable,
423422 .cpu_die = generic_cpu_die,
423
+ .cpu_offline_self = pnv_cpu_offline_self,
424424 #endif /* CONFIG_HOTPLUG_CPU */
425425 };
426426
....@@ -434,7 +434,6 @@
434434 smp_ops = &pnv_smp_ops;
435435
436436 #ifdef CONFIG_HOTPLUG_CPU
437
- ppc_md.cpu_die = pnv_smp_cpu_kill_self;
438437 #ifdef CONFIG_KEXEC_CORE
439438 crash_wake_offline = 1;
440439 #endif