aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@wdc.com>2018-12-21 07:51:59 +0530
committerAnup Patel <anup@brainfault.org>2018-12-21 07:51:59 +0530
commitab5b228ff596657dffce4a2ed96cd73a95e1864b (patch)
tree6af95dc35e0c4d57e3655c9a51d009c69a45ed39
parent33ec85c9ab234f546b5814a8bd1dad9ab698a6b0 (diff)
lib: sbi_hart: Remove unwanted sbi_printf()
This patch removes unwanted sbi_printf() from sbi_hart_wait_for_coldboot(). Signed-off-by: Anup Patel <anup.patel@wdc.com>
-rw-r--r--lib/sbi_hart.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/sbi_hart.c b/lib/sbi_hart.c
index 30f4f03..fd6d4d4 100644
--- a/lib/sbi_hart.c
+++ b/lib/sbi_hart.c
@@ -270,7 +270,6 @@ void sbi_hart_wait_for_coldboot(struct sbi_scratch *scratch, u32 hartid)
unsigned long mipval;
struct sbi_platform *plat = sbi_platform_ptr(scratch);
- sbi_printf("%s: In hartid = [%d]\n", __func__, hartid);
if ((sbi_platform_hart_count(plat) <= hartid) ||
(NO_HOTPLUG_BITMAP_SIZE <= hartid))
sbi_hart_hang();
@@ -287,11 +286,10 @@ void sbi_hart_wake_coldboot_harts(struct sbi_scratch *scratch, u32 hartid)
{
struct sbi_platform *plat = sbi_platform_ptr(scratch);
int max_hart = sbi_platform_hart_count(plat);
-
+
for(int i = 0; i < max_hart ; i++) {
/* send an IPI to every other hart */
if (i != hartid)
- sbi_platform_ipi_inject(plat, i, hartid);
- }
-
+ sbi_platform_ipi_inject(plat, i, hartid);
+ }
}