Skip to content

Commit da7bad9

Browse files
Anshuman Khandualwilldeacon
authored andcommitted
arm64/cpuinfo: Move device_initcall() near cpuinfo_regs_init()
This moves device_initcall() near cpuinfo_regs_init() making the calling sequence clear. Besides it is a standard practice to have device_initcall() (any __initcall for that matter) just after the function it actually calls. Cc: Catalin Marinas <[email protected]> Cc: Will Deacon <[email protected]> Cc: Mark Brown <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Suzuki Poulose <[email protected]> Cc: [email protected] Cc: [email protected] Signed-off-by: Anshuman Khandual <[email protected]> Acked-by: Mark Rutland <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent 51075e0 commit da7bad9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/arm64/kernel/cpuinfo.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,8 @@ static int __init cpuinfo_regs_init(void)
311311
}
312312
return 0;
313313
}
314+
device_initcall(cpuinfo_regs_init);
315+
314316
static void cpuinfo_detect_icache_policy(struct cpuinfo_arm64 *info)
315317
{
316318
unsigned int cpu = smp_processor_id();
@@ -403,5 +405,3 @@ void __init cpuinfo_store_boot_cpu(void)
403405
boot_cpu_data = *info;
404406
init_cpu_features(&boot_cpu_data);
405407
}
406-
407-
device_initcall(cpuinfo_regs_init);

0 commit comments

Comments
 (0)