hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/arch/arm/kernel/psci_smp.c
....@@ -1,12 +1,5 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
2
- * This program is free software; you can redistribute it and/or modify
3
- * it under the terms of the GNU General Public License version 2 as
4
- * published by the Free Software Foundation.
5
- *
6
- * This program is distributed in the hope that it will be useful,
7
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
8
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9
- * GNU General Public License for more details.
103 *
114 * Copyright (C) 2012 ARM Limited
125 *
....@@ -58,7 +51,7 @@
5851 }
5952
6053 #ifdef CONFIG_HOTPLUG_CPU
61
-int psci_cpu_disable(unsigned int cpu)
54
+static int psci_cpu_disable(unsigned int cpu)
6255 {
6356 /* Fail early if we don't have CPU_OFF support */
6457 if (!psci_ops.cpu_off)
....@@ -71,7 +64,7 @@
7164 return 0;
7265 }
7366
74
-void psci_cpu_die(unsigned int cpu)
67
+static void psci_cpu_die(unsigned int cpu)
7568 {
7669 u32 state = PSCI_POWER_STATE_TYPE_POWER_DOWN <<
7770 PSCI_0_2_POWER_STATE_TYPE_SHIFT;
....@@ -83,7 +76,7 @@
8376 panic("psci: cpu %d failed to shutdown\n", cpu);
8477 }
8578
86
-int psci_cpu_kill(unsigned int cpu)
79
+static int psci_cpu_kill(unsigned int cpu)
8780 {
8881 int err, i;
8982
....@@ -114,11 +107,12 @@
114107
115108 #endif
116109
117
-bool __init psci_smp_available(void)
110
+bool psci_smp_available(void)
118111 {
119112 /* is cpu_on available at least? */
120113 return (psci_ops.cpu_on != NULL);
121114 }
115
+EXPORT_SYMBOL(psci_smp_available);
122116
123117 const struct smp_operations psci_smp_ops __initconst = {
124118 .smp_boot_secondary = psci_boot_secondary,