OSDN Git Service

Rename sbi_save to parse_dtb to improve code readability
authorMichael Clark <michaeljclark@mac.com>
Thu, 15 Feb 2018 20:30:29 +0000 (09:30 +1300)
committerPalmer Dabbelt <palmer@sifive.com>
Tue, 20 Feb 2018 18:56:26 +0000 (10:56 -0800)
The sbi_ prefix would seem to indicate an SBI interface, and save is not
very specific. After applying this patch, reading head.S makes more sense.

Signed-off-by: Michael Clark <michaeljclark@mac.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
arch/riscv/kernel/head.S
arch/riscv/kernel/setup.c

index 226eeb1..6e07ed3 100644 (file)
@@ -64,7 +64,7 @@ ENTRY(_start)
        /* Start the kernel */
        mv a0, s0
        mv a1, s1
-       call sbi_save
+       call parse_dtb
        tail start_kernel
 
 relocate:
index 09f7064..c11f40c 100644 (file)
@@ -144,7 +144,7 @@ asmlinkage void __init setup_vm(void)
 #endif
 }
 
-void __init sbi_save(unsigned int hartid, void *dtb)
+void __init parse_dtb(unsigned int hartid, void *dtb)
 {
        early_init_dt_scan(__va(dtb));
 }