| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (C) 1996-2000 Russell King - Converted to ARM. |
|---|
| 3 | 4 | * Original Copyright (C) 1995 Linus Torvalds |
|---|
| 4 | | - * |
|---|
| 5 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 6 | | - * it under the terms of the GNU General Public License version 2 as |
|---|
| 7 | | - * published by the Free Software Foundation. |
|---|
| 8 | 5 | */ |
|---|
| 9 | 6 | #include <linux/cpu.h> |
|---|
| 10 | 7 | #include <linux/delay.h> |
|---|
| .. | .. |
|---|
| 21 | 18 | /* |
|---|
| 22 | 19 | * Function pointers to optional machine specific functions |
|---|
| 23 | 20 | */ |
|---|
| 24 | | -void (*arm_pm_restart)(enum reboot_mode reboot_mode, const char *cmd); |
|---|
| 25 | 21 | void (*pm_power_off)(void); |
|---|
| 26 | 22 | EXPORT_SYMBOL(pm_power_off); |
|---|
| 27 | 23 | |
|---|
| .. | .. |
|---|
| 91 | 87 | * to execute e.g. a RAM-based pin loop is not sufficient. This allows the |
|---|
| 92 | 88 | * kexec'd kernel to use any and all RAM as it sees fit, without having to |
|---|
| 93 | 89 | * avoid any code or data used by any SW CPU pin loop. The CPU hotplug |
|---|
| 94 | | - * functionality embodied in disable_nonboot_cpus() to achieve this. |
|---|
| 90 | + * functionality embodied in smp_shutdown_nonboot_cpus() to achieve this. |
|---|
| 95 | 91 | */ |
|---|
| 96 | 92 | void machine_shutdown(void) |
|---|
| 97 | 93 | { |
|---|
| 98 | | - disable_nonboot_cpus(); |
|---|
| 94 | + smp_shutdown_nonboot_cpus(reboot_cpu); |
|---|
| 99 | 95 | } |
|---|
| 100 | 96 | |
|---|
| 101 | 97 | /* |
|---|
| .. | .. |
|---|
| 142 | 138 | smp_send_stop(); |
|---|
| 143 | 139 | |
|---|
| 144 | 140 | do_kernel_pre_restart(cmd); |
|---|
| 145 | | - |
|---|
| 146 | | - if (arm_pm_restart) |
|---|
| 147 | | - arm_pm_restart(reboot_mode, cmd); |
|---|
| 148 | | - else |
|---|
| 149 | | - do_kernel_restart(cmd); |
|---|
| 141 | + do_kernel_restart(cmd); |
|---|
| 150 | 142 | |
|---|
| 151 | 143 | /* Give a grace period for failure to restart of 1s */ |
|---|
| 152 | 144 | mdelay(1000); |
|---|