aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64/kernel/smp_spin_table.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm64/kernel/smp_spin_table.c')
-rw-r--r--arch/arm64/kernel/smp_spin_table.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/arch/arm64/kernel/smp_spin_table.c b/arch/arm64/kernel/smp_spin_table.c
index 7c35fa682f76..a8b76e4eccff 100644
--- a/arch/arm64/kernel/smp_spin_table.c
+++ b/arch/arm64/kernel/smp_spin_table.c
@@ -21,10 +21,11 @@
21#include <linux/smp.h> 21#include <linux/smp.h>
22 22
23#include <asm/cacheflush.h> 23#include <asm/cacheflush.h>
24#include <asm/cpu_ops.h>
24 25
25static phys_addr_t cpu_release_addr[NR_CPUS]; 26static phys_addr_t cpu_release_addr[NR_CPUS];
26 27
27static int __init smp_spin_table_init_cpu(struct device_node *dn, int cpu) 28static int smp_spin_table_cpu_init(struct device_node *dn, unsigned int cpu)
28{ 29{
29 /* 30 /*
30 * Determine the address from which the CPU is polling. 31 * Determine the address from which the CPU is polling.
@@ -40,7 +41,7 @@ static int __init smp_spin_table_init_cpu(struct device_node *dn, int cpu)
40 return 0; 41 return 0;
41} 42}
42 43
43static int __init smp_spin_table_prepare_cpu(int cpu) 44static int smp_spin_table_cpu_prepare(unsigned int cpu)
44{ 45{
45 void **release_addr; 46 void **release_addr;
46 47
@@ -59,8 +60,8 @@ static int __init smp_spin_table_prepare_cpu(int cpu)
59 return 0; 60 return 0;
60} 61}
61 62
62const struct smp_enable_ops smp_spin_table_ops __initconst = { 63const struct cpu_operations smp_spin_table_ops = {
63 .name = "spin-table", 64 .name = "spin-table",
64 .init_cpu = smp_spin_table_init_cpu, 65 .cpu_init = smp_spin_table_cpu_init,
65 .prepare_cpu = smp_spin_table_prepare_cpu, 66 .cpu_prepare = smp_spin_table_cpu_prepare,
66}; 67};