.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (C) 2015 Linus Walleij |
---|
3 | | - * |
---|
4 | | - * This program is free software; you can redistribute it and/or modify |
---|
5 | | - * it under the terms of the GNU General Public License version 2 as |
---|
6 | | - * published by the Free Software Foundation. |
---|
7 | 4 | */ |
---|
8 | 5 | #include <linux/smp.h> |
---|
9 | 6 | #include <linux/io.h> |
---|
.. | .. |
---|
17 | 14 | #include <asm/smp_scu.h> |
---|
18 | 15 | |
---|
19 | 16 | #include <plat/platsmp.h> |
---|
20 | | -#include "hotplug.h" |
---|
21 | 17 | |
---|
22 | 18 | #define REALVIEW_SYS_FLAGSSET_OFFSET 0x30 |
---|
23 | 19 | |
---|
.. | .. |
---|
79 | 75 | __pa_symbol(versatile_secondary_startup)); |
---|
80 | 76 | } |
---|
81 | 77 | |
---|
| 78 | +#ifdef CONFIG_HOTPLUG_CPU |
---|
| 79 | +static void realview_cpu_die(unsigned int cpu) |
---|
| 80 | +{ |
---|
| 81 | + return versatile_immitation_cpu_die(cpu, 0x20); |
---|
| 82 | +} |
---|
| 83 | +#endif |
---|
| 84 | + |
---|
82 | 85 | static const struct smp_operations realview_dt_smp_ops __initconst = { |
---|
83 | 86 | .smp_prepare_cpus = realview_smp_prepare_cpus, |
---|
84 | 87 | .smp_secondary_init = versatile_secondary_init, |
---|