hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/arch/arm/mach-actions/platsmp.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Actions Semi Leopard
34 *
....@@ -7,11 +8,6 @@
78 * Author: Actions Semi, Inc.
89 *
910 * Copyright (c) 2017 Andreas Färber
10
- *
11
- * This program is free software; you can redistribute it and/or modify it
12
- * under the terms of the GNU General Public License as published by the
13
- * Free Software Foundation; either version 2 of the License, or (at your
14
- * option) any later version.
1511 */
1612
1713 #include <linux/delay.h>
....@@ -38,10 +34,6 @@
3834 static void __iomem *sps_base_addr;
3935 static void __iomem *timer_base_addr;
4036 static int ncores;
41
-
42
-static DEFINE_SPINLOCK(boot_lock);
43
-
44
-void owl_secondary_startup(void);
4537
4638 static int s500_wakeup_secondary(unsigned int cpu)
4739 {
....@@ -84,7 +76,6 @@
8476
8577 static int s500_smp_boot_secondary(unsigned int cpu, struct task_struct *idle)
8678 {
87
- unsigned long timeout;
8879 int ret;
8980
9081 ret = s500_wakeup_secondary(cpu);
....@@ -93,20 +84,10 @@
9384
9485 udelay(10);
9586
96
- spin_lock(&boot_lock);
97
-
9887 smp_send_reschedule(cpu);
99
-
100
- timeout = jiffies + (1 * HZ);
101
- while (time_before(jiffies, timeout)) {
102
- if (pen_release == -1)
103
- break;
104
- }
10588
10689 writel(0, timer_base_addr + OWL_CPU1_ADDR + (cpu - 1) * 4);
10790 writel(0, timer_base_addr + OWL_CPU1_FLAG + (cpu - 1) * 4);
108
-
109
- spin_unlock(&boot_lock);
11091
11192 return 0;
11293 }