acpi.h (a23e1966932464e1c5226cb9ac4ce1d5fc10ba22) | acpi.h (eabd9db64ea8ba64d2a0b1d70da38e1a95dcd08b) |
---|---|
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 * Copyright (C) 2021-2023, Ventana Micro Systems Inc. --- 47 unchanged lines hidden (view full) --- 56{ 57 return true; 58} 59 60static inline void arch_fix_phys_package_id(int num, u32 slot) { } 61 62void acpi_init_rintc_map(void); 63struct acpi_madt_rintc *acpi_cpu_get_madt_rintc(int 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 * Copyright (C) 2021-2023, Ventana Micro Systems Inc. --- 47 unchanged lines hidden (view full) --- 56{ 57 return true; 58} 59 60static inline void arch_fix_phys_package_id(int num, u32 slot) { } 61 62void acpi_init_rintc_map(void); 63struct acpi_madt_rintc *acpi_cpu_get_madt_rintc(int cpu); |
64u32 get_acpi_id_for_cpu(int cpu); | 64static inline u32 get_acpi_id_for_cpu(int cpu) 65{ 66 return acpi_cpu_get_madt_rintc(cpu)->uid; 67} 68 |
65int acpi_get_riscv_isa(struct acpi_table_header *table, 66 unsigned int cpu, const char **isa); 67 | 69int acpi_get_riscv_isa(struct acpi_table_header *table, 70 unsigned int cpu, const char **isa); 71 |
68static inline int acpi_numa_get_nid(unsigned int cpu) { return NUMA_NO_NODE; } | |
69void acpi_get_cbo_block_size(struct acpi_table_header *table, u32 *cbom_size, 70 u32 *cboz_size, u32 *cbop_size); 71#else 72static inline void acpi_init_rintc_map(void) { } 73static inline struct acpi_madt_rintc *acpi_cpu_get_madt_rintc(int cpu) 74{ 75 return NULL; 76} --- 5 unchanged lines hidden (view full) --- 82} 83 84static inline void acpi_get_cbo_block_size(struct acpi_table_header *table, 85 u32 *cbom_size, u32 *cboz_size, 86 u32 *cbop_size) { } 87 88#endif /* CONFIG_ACPI */ 89 | 72void acpi_get_cbo_block_size(struct acpi_table_header *table, u32 *cbom_size, 73 u32 *cboz_size, u32 *cbop_size); 74#else 75static inline void acpi_init_rintc_map(void) { } 76static inline struct acpi_madt_rintc *acpi_cpu_get_madt_rintc(int cpu) 77{ 78 return NULL; 79} --- 5 unchanged lines hidden (view full) --- 85} 86 87static inline void acpi_get_cbo_block_size(struct acpi_table_header *table, 88 u32 *cbom_size, u32 *cboz_size, 89 u32 *cbop_size) { } 90 91#endif /* CONFIG_ACPI */ 92 |
93#ifdef CONFIG_ACPI_NUMA 94int acpi_numa_get_nid(unsigned int cpu); 95void acpi_map_cpus_to_nodes(void); 96#else 97static inline int acpi_numa_get_nid(unsigned int cpu) { return NUMA_NO_NODE; } 98static inline void acpi_map_cpus_to_nodes(void) { } 99#endif /* CONFIG_ACPI_NUMA */ 100 |
|
90#endif /*_ASM_ACPI_H*/ | 101#endif /*_ASM_ACPI_H*/ |