| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * linux/arch/arm/mach-vexpress/platsmp.c |
|---|
| 3 | 4 | * |
|---|
| 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/init.h> |
|---|
| 12 | 9 | #include <linux/errno.h> |
|---|
| .. | .. |
|---|
| 82 | 79 | vexpress_flags_set(__pa_symbol(versatile_secondary_startup)); |
|---|
| 83 | 80 | } |
|---|
| 84 | 81 | |
|---|
| 82 | +#ifdef CONFIG_HOTPLUG_CPU |
|---|
| 83 | +static void vexpress_cpu_die(unsigned int cpu) |
|---|
| 84 | +{ |
|---|
| 85 | + versatile_immitation_cpu_die(cpu, 0x40); |
|---|
| 86 | +} |
|---|
| 87 | +#endif |
|---|
| 88 | + |
|---|
| 85 | 89 | const struct smp_operations vexpress_smp_dt_ops __initconst = { |
|---|
| 86 | 90 | .smp_prepare_cpus = vexpress_smp_dt_prepare_cpus, |
|---|
| 87 | 91 | .smp_secondary_init = versatile_secondary_init, |
|---|