Skip to content

Commit f8a23e3

Browse files
nick650823palmer-dabbelt
authored andcommitted
cpuidle: riscv-sbi: Move sbi_cpuidle_init to arch_initcall
Move the sbi_cpuidle_init to the arch_initcall to prevent the consumer devices from being deferred. Signed-off-by: Nick Hu <nick.hu@sifive.com> Link: https://lore.kernel.org/lkml/CAKddAkAOUJSnM=Px-YO=U6pis_7mODHZbmYqcgEzXikriqYvXQ@mail.gmail.com/ Suggested-by: Anup Patel <apatel@ventanamicro.com> Reviewed-by: Anup Patel <anup@brainfault.org> Link: https://lore.kernel.org/r/20240814054434.3563453-2-nick.hu@sifive.com Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
1 parent 8400291 commit f8a23e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/cpuidle/cpuidle-riscv-sbi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,4 +592,4 @@ static int __init sbi_cpuidle_init(void)
592592

593593
return 0;
594594
}
595-
device_initcall(sbi_cpuidle_init);
595+
arch_initcall(sbi_cpuidle_init);

0 commit comments

Comments
 (0)