setup.c (9d4d8572a539ef807e21c196f145aa365fd52f0e) setup.c (f6f0c4362f070cab4a0cec432e82428d702ce0a6)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Based on arch/arm/kernel/setup.c
4 *
5 * Copyright (C) 1995-2001 Russell King
6 * Copyright (C) 2012 ARM Ltd.
7 */
8

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

163 /*
164 * 4x is an arbitrary value used to warn on a hash table much bigger
165 * than expected on most systems.
166 */
167 if (mpidr_hash_size() > 4 * num_possible_cpus())
168 pr_warn("Large number of MPIDR hash buckets detected\n");
169}
170
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Based on arch/arm/kernel/setup.c
4 *
5 * Copyright (C) 1995-2001 Russell King
6 * Copyright (C) 2012 ARM Ltd.
7 */
8

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

163 /*
164 * 4x is an arbitrary value used to warn on a hash table much bigger
165 * than expected on most systems.
166 */
167 if (mpidr_hash_size() > 4 * num_possible_cpus())
168 pr_warn("Large number of MPIDR hash buckets detected\n");
169}
170
171static void *early_fdt_ptr __initdata;
172
173void __init *get_early_fdt_ptr(void)
174{
175 return early_fdt_ptr;
176}
177
178asmlinkage void __init early_fdt_map(u64 dt_phys)
179{
180 int fdt_size;
181
182 early_fixmap_init();
183 early_fdt_ptr = fixmap_remap_fdt(dt_phys, &fdt_size, PAGE_KERNEL);
184}
185
171static void __init setup_machine_fdt(phys_addr_t dt_phys)
172{
173 int size;
174 void *dt_virt = fixmap_remap_fdt(dt_phys, &size, PAGE_KERNEL);
175 const char *name;
176
177 if (dt_virt)
178 memblock_reserve(dt_phys, size);

--- 262 unchanged lines hidden ---
186static void __init setup_machine_fdt(phys_addr_t dt_phys)
187{
188 int size;
189 void *dt_virt = fixmap_remap_fdt(dt_phys, &size, PAGE_KERNEL);
190 const char *name;
191
192 if (dt_virt)
193 memblock_reserve(dt_phys, size);

--- 262 unchanged lines hidden ---