
virt inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/ICBIGY ------------------------------------------------------------------------ The print is used to facilitate fault locating during debugging. Therefore, the information needs to be deleted to prevent useless information from being printed on the host. Fixes: 09d8e9218695 ("irqchip/gic: Add HiSilicon PV SGI support") Signed-off-by: Jinqian Yang <yangjinqian1@huawei.com> --- drivers/irqchip/irq-gic-v3.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/irqchip/irq-gic-v3.c b/drivers/irqchip/irq-gic-v3.c index 37eb995320a3..9d2a5cc50c33 100644 --- a/drivers/irqchip/irq-gic-v3.c +++ b/drivers/irqchip/irq-gic-v3.c @@ -2950,16 +2950,12 @@ static void hisi_pv_sgi_init(void) struct arm_smccc_res res; arm_smccc_1_1_invoke(ARM_SMCCC_VENDOR_PV_SGI_FEATURES, &res); - if (res.a0 != SMCCC_RET_SUCCESS) { - pr_info("Not Support HiSilicon PV SGI!\n"); + if (res.a0 != SMCCC_RET_SUCCESS) return; - } arm_smccc_1_1_invoke(ARM_SMCCC_VENDOR_PV_SGI_ENABLE, &res); - if (res.a0 != SMCCC_RET_SUCCESS) { - pr_info("Disable HiSilicon PV SGI!\n"); + if (res.a0 != SMCCC_RET_SUCCESS) return; - } hisi_pv_sgi_enabled = true; pr_info("Enable HiSilicon PV SGI!\n"); -- 2.33.0