forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/arch/powerpc/platforms/cell/smp.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * SMP support for BPA machines.
34 *
....@@ -5,11 +6,6 @@
56 * Mike Corrigan {engebret|bergner|mikec}@us.ibm.com
67 *
78 * Plus various changes from other IBM teams...
8
- *
9
- * This program is free software; you can redistribute it and/or
10
- * modify it under the terms of the GNU General Public License
11
- * as published by the Free Software Foundation; either version
12
- * 2 of the License, or (at your option) any later version.
139 */
1410
1511 #undef DEBUG
....@@ -25,12 +21,12 @@
2521 #include <linux/err.h>
2622 #include <linux/device.h>
2723 #include <linux/cpu.h>
24
+#include <linux/pgtable.h>
2825
2926 #include <asm/ptrace.h>
3027 #include <linux/atomic.h>
3128 #include <asm/irq.h>
3229 #include <asm/page.h>
33
-#include <asm/pgtable.h>
3430 #include <asm/io.h>
3531 #include <asm/prom.h>
3632 #include <asm/smp.h>
....@@ -81,9 +77,6 @@
8177 return 1;
8278
8379 pcpu = get_hard_smp_processor_id(lcpu);
84
-
85
- /* Fixup atomic count: it exited inside IRQ handler. */
86
- task_thread_info(paca_ptrs[lcpu]->__current)->preempt_count = 0;
8780
8881 /*
8982 * If the RTAS start-cpu token does not exist then presume the