mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-24 15:31:22 +01:00
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>
This commit is contained in:
@@ -270,7 +270,6 @@ void sbi_hart_wait_for_coldboot(struct sbi_scratch *scratch, u32 hartid)
|
|||||||
unsigned long mipval;
|
unsigned long mipval;
|
||||||
struct sbi_platform *plat = sbi_platform_ptr(scratch);
|
struct sbi_platform *plat = sbi_platform_ptr(scratch);
|
||||||
|
|
||||||
sbi_printf("%s: In hartid = [%d]\n", __func__, hartid);
|
|
||||||
if ((sbi_platform_hart_count(plat) <= hartid) ||
|
if ((sbi_platform_hart_count(plat) <= hartid) ||
|
||||||
(NO_HOTPLUG_BITMAP_SIZE <= hartid))
|
(NO_HOTPLUG_BITMAP_SIZE <= hartid))
|
||||||
sbi_hart_hang();
|
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);
|
struct sbi_platform *plat = sbi_platform_ptr(scratch);
|
||||||
int max_hart = sbi_platform_hart_count(plat);
|
int max_hart = sbi_platform_hart_count(plat);
|
||||||
|
|
||||||
for(int i = 0; i < max_hart ; i++) {
|
for(int i = 0; i < max_hart ; i++) {
|
||||||
/* send an IPI to every other hart */
|
/* send an IPI to every other hart */
|
||||||
if (i != hartid)
|
if (i != hartid)
|
||||||
sbi_platform_ipi_inject(plat, i, hartid);
|
sbi_platform_ipi_inject(plat, i, hartid);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user