.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (C) 2016 Neil Armstrong <narmstrong@baylibre.com> |
---|
3 | 4 | * Copyright (C) 2013 Ma Haijun <mahaijuns@gmail.com> |
---|
4 | 5 | * Copyright (C) 2002 ARM Ltd. |
---|
5 | 6 | * All Rights Reserved |
---|
6 | | - * |
---|
7 | | - * This program is free software; you can redistribute it and/or modify |
---|
8 | | - * it under the terms of the GNU General Public License version 2 as |
---|
9 | | - * published by the Free Software Foundation. |
---|
10 | 7 | */ |
---|
11 | 8 | #include <linux/io.h> |
---|
12 | 9 | #include <linux/delay.h> |
---|
.. | .. |
---|
19 | 16 | #include <asm/smp_scu.h> |
---|
20 | 17 | |
---|
21 | 18 | extern void ox820_secondary_startup(void); |
---|
22 | | -extern void ox820_cpu_die(unsigned int cpu); |
---|
23 | 19 | |
---|
24 | 20 | static void __iomem *cpu_ctrl; |
---|
25 | 21 | static void __iomem *gic_cpu_ctrl; |
---|
.. | .. |
---|
31 | 27 | #define GIC_CPU_CTRL 0x00 |
---|
32 | 28 | #define GIC_CPU_CTRL_ENABLE 1 |
---|
33 | 29 | |
---|
34 | | -int __init ox820_boot_secondary(unsigned int cpu, struct task_struct *idle) |
---|
| 30 | +static int __init ox820_boot_secondary(unsigned int cpu, |
---|
| 31 | + struct task_struct *idle) |
---|
35 | 32 | { |
---|
36 | 33 | /* |
---|
37 | 34 | * Write the address of secondary startup into the |
---|
.. | .. |
---|
94 | 91 | static const struct smp_operations ox820_smp_ops __initconst = { |
---|
95 | 92 | .smp_prepare_cpus = ox820_smp_prepare_cpus, |
---|
96 | 93 | .smp_boot_secondary = ox820_boot_secondary, |
---|
97 | | -#ifdef CONFIG_HOTPLUG_CPU |
---|
98 | | - .cpu_die = ox820_cpu_die, |
---|
99 | | -#endif |
---|
100 | 94 | }; |
---|
101 | 95 | |
---|
102 | 96 | CPU_METHOD_OF_DECLARE(ox820_smp, "oxsemi,ox820-smp", &ox820_smp_ops); |
---|