| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 3 | | - * it under the terms of the GNU General Public License version 2 as |
|---|
| 4 | | - * published by the Free Software Foundation. |
|---|
| 5 | | - * |
|---|
| 6 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 7 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 8 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 9 | | - * GNU General Public License for more details. |
|---|
| 10 | 3 | * |
|---|
| 11 | 4 | * Copyright (C) 2012 ARM Limited |
|---|
| 12 | 5 | * |
|---|
| .. | .. |
|---|
| 58 | 51 | } |
|---|
| 59 | 52 | |
|---|
| 60 | 53 | #ifdef CONFIG_HOTPLUG_CPU |
|---|
| 61 | | -int psci_cpu_disable(unsigned int cpu) |
|---|
| 54 | +static int psci_cpu_disable(unsigned int cpu) |
|---|
| 62 | 55 | { |
|---|
| 63 | 56 | /* Fail early if we don't have CPU_OFF support */ |
|---|
| 64 | 57 | if (!psci_ops.cpu_off) |
|---|
| .. | .. |
|---|
| 71 | 64 | return 0; |
|---|
| 72 | 65 | } |
|---|
| 73 | 66 | |
|---|
| 74 | | -void psci_cpu_die(unsigned int cpu) |
|---|
| 67 | +static void psci_cpu_die(unsigned int cpu) |
|---|
| 75 | 68 | { |
|---|
| 76 | 69 | u32 state = PSCI_POWER_STATE_TYPE_POWER_DOWN << |
|---|
| 77 | 70 | PSCI_0_2_POWER_STATE_TYPE_SHIFT; |
|---|
| .. | .. |
|---|
| 83 | 76 | panic("psci: cpu %d failed to shutdown\n", cpu); |
|---|
| 84 | 77 | } |
|---|
| 85 | 78 | |
|---|
| 86 | | -int psci_cpu_kill(unsigned int cpu) |
|---|
| 79 | +static int psci_cpu_kill(unsigned int cpu) |
|---|
| 87 | 80 | { |
|---|
| 88 | 81 | int err, i; |
|---|
| 89 | 82 | |
|---|
| .. | .. |
|---|
| 114 | 107 | |
|---|
| 115 | 108 | #endif |
|---|
| 116 | 109 | |
|---|
| 117 | | -bool __init psci_smp_available(void) |
|---|
| 110 | +bool psci_smp_available(void) |
|---|
| 118 | 111 | { |
|---|
| 119 | 112 | /* is cpu_on available at least? */ |
|---|
| 120 | 113 | return (psci_ops.cpu_on != NULL); |
|---|
| 121 | 114 | } |
|---|
| 115 | +EXPORT_SYMBOL(psci_smp_available); |
|---|
| 122 | 116 | |
|---|
| 123 | 117 | const struct smp_operations psci_smp_ops __initconst = { |
|---|
| 124 | 118 | .smp_boot_secondary = psci_boot_secondary, |
|---|