diff options
author | Suzuki K. Poulose <suzuki.poulose@arm.com> | 2015-10-19 09:24:39 -0400 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2015-10-21 10:33:15 -0400 |
commit | 3a75578efae64b94d76eacbf8adf2a3ab13c6aa1 (patch) | |
tree | f71756fc694a5b09332eada3813a0cabbd604b73 /arch/arm64/kernel/setup.c | |
parent | 64f17818977d0989f7d05347670777611b295799 (diff) |
arm64: Delay ELF HWCAP initialisation until all CPUs are up
Delay the ELF HWCAP initialisation until all the (enabled) CPUs are
up, i.e, smp_cpus_done(). This is in preparation for detecting the
common features across the CPUS and creating a consistent ELF HWCAP
for the system.
Signed-off-by: Suzuki K. Poulose <suzuki.poulose@arm.com>
Tested-by: Dave Martin <Dave.Martin@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/kernel/setup.c')
-rw-r--r-- | arch/arm64/kernel/setup.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c index 1d503e2d6957..4f0408e1df0d 100644 --- a/arch/arm64/kernel/setup.c +++ b/arch/arm64/kernel/setup.c | |||
@@ -196,20 +196,13 @@ static void __init smp_build_mpidr_hash(void) | |||
196 | __flush_dcache_area(&mpidr_hash, sizeof(struct mpidr_hash)); | 196 | __flush_dcache_area(&mpidr_hash, sizeof(struct mpidr_hash)); |
197 | } | 197 | } |
198 | 198 | ||
199 | static void __init setup_processor(void) | 199 | void __init setup_cpu_features(void) |
200 | { | 200 | { |
201 | u64 features; | 201 | u64 features; |
202 | s64 block; | 202 | s64 block; |
203 | u32 cwg; | 203 | u32 cwg; |
204 | int cls; | 204 | int cls; |
205 | 205 | ||
206 | pr_info("Boot CPU: AArch64 Processor [%08x]\n", read_cpuid_id()); | ||
207 | |||
208 | sprintf(init_utsname()->machine, ELF_PLATFORM); | ||
209 | elf_hwcap = 0; | ||
210 | |||
211 | cpuinfo_store_boot_cpu(); | ||
212 | |||
213 | /* | 206 | /* |
214 | * Check for sane CTR_EL0.CWG value. | 207 | * Check for sane CTR_EL0.CWG value. |
215 | */ | 208 | */ |
@@ -293,6 +286,13 @@ static void __init setup_processor(void) | |||
293 | #endif | 286 | #endif |
294 | } | 287 | } |
295 | 288 | ||
289 | static void __init setup_processor(void) | ||
290 | { | ||
291 | pr_info("Boot CPU: AArch64 Processor [%08x]\n", read_cpuid_id()); | ||
292 | sprintf(init_utsname()->machine, ELF_PLATFORM); | ||
293 | cpuinfo_store_boot_cpu(); | ||
294 | } | ||
295 | |||
296 | static void __init setup_machine_fdt(phys_addr_t dt_phys) | 296 | static void __init setup_machine_fdt(phys_addr_t dt_phys) |
297 | { | 297 | { |
298 | void *dt_virt = fixmap_remap_fdt(dt_phys); | 298 | void *dt_virt = fixmap_remap_fdt(dt_phys); |