lib: sbi: Print platform hart count at boot time
authorAnup Patel <anup.patel@wdc.com>
Sun, 26 Apr 2020 10:22:26 +0000 (15:52 +0530)
committerAnup Patel <anup@brainfault.org>
Fri, 1 May 2020 05:03:08 +0000 (10:33 +0530)
Now that we have generic platform which detects hart count from
DTB, we should print platform hart count at boot time.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
lib/sbi/sbi_init.c

index b01bff1..629eb83 100644 (file)
@@ -59,7 +59,9 @@ static void sbi_boot_prints(struct sbi_scratch *scratch, u32 hartid)
        /* Platform details */
        sbi_printf("Platform Name          : %s\n", sbi_platform_name(plat));
        sbi_printf("Platform HART Features : RV%d%s\n", xlen, str);
-       sbi_printf("Current Hart           : %u\n", hartid);
+       sbi_printf("Platform HART Count    : %u\n",
+                  sbi_platform_hart_count(plat));
+       sbi_printf("Current HART ID        : %u\n", hartid);
        /* Firmware details */
        sbi_printf("Firmware Base          : 0x%lx\n", scratch->fw_start);
        sbi_printf("Firmware Size          : %d KB\n",