acpi.h (8d34b6f17b9ac93faa2791eb037dcb08bdf755de) acpi.h (2488444274c70038eb6b686cba5f1ce48ebb9cdd)
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * Copyright (C) 2013-2014, Linaro Ltd.
4 * Author: Al Stone <al.stone@linaro.org>
5 * Author: Graeme Gregory <graeme.gregory@linaro.org>
6 * Author: Hanjun Guo <hanjun.guo@linaro.org>
7 */
8

--- 110 unchanged lines hidden (view full) ---

119 return acpi_cpu_get_madt_gicc(cpu)->uid;
120}
121
122static inline int get_cpu_for_acpi_id(u32 uid)
123{
124 int cpu;
125
126 for (cpu = 0; cpu < nr_cpu_ids; cpu++)
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * Copyright (C) 2013-2014, Linaro Ltd.
4 * Author: Al Stone <al.stone@linaro.org>
5 * Author: Graeme Gregory <graeme.gregory@linaro.org>
6 * Author: Hanjun Guo <hanjun.guo@linaro.org>
7 */
8

--- 110 unchanged lines hidden (view full) ---

119 return acpi_cpu_get_madt_gicc(cpu)->uid;
120}
121
122static inline int get_cpu_for_acpi_id(u32 uid)
123{
124 int cpu;
125
126 for (cpu = 0; cpu < nr_cpu_ids; cpu++)
127 if (uid == get_acpi_id_for_cpu(cpu))
127 if (acpi_cpu_get_madt_gicc(cpu) &&
128 uid == get_acpi_id_for_cpu(cpu))
128 return cpu;
129
130 return -EINVAL;
131}
132
133static inline void arch_fix_phys_package_id(int num, u32 slot) { }
134void __init acpi_init_cpus(void);
135int apei_claim_sea(struct pt_regs *regs);

--- 55 unchanged lines hidden ---
129 return cpu;
130
131 return -EINVAL;
132}
133
134static inline void arch_fix_phys_package_id(int num, u32 slot) { }
135void __init acpi_init_cpus(void);
136int apei_claim_sea(struct pt_regs *regs);

--- 55 unchanged lines hidden ---