From e1129ba35fea943ba9787088edd582826f247db8 Mon Sep 17 00:00:00 2001 From: Yong Ding Date: Fri, 29 Nov 2019 10:58:05 +0800 Subject: [PATCH] soc: qcom: hab: run the dispatcher's tasklet w/ high priority HAB uses tasklets as the bottom half to receive message from the remote side. Even when the whole system is overloaded, HAB clients (e.g., audio, display, gfx) still expect low latency for good user experience. So here, tasklet_hi_schedule() is used. Change-Id: I0b8ed281f090e9c251eb62fe5e78900ea2e9dc8d Signed-off-by: Yong Ding --- drivers/soc/qcom/hab/hab_ghs.c | 2 +- drivers/soc/qcom/hab/hab_qvm.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/soc/qcom/hab/hab_ghs.c b/drivers/soc/qcom/hab/hab_ghs.c index f479d69b9e38..57c4513c4058 100644 --- a/drivers/soc/qcom/hab/hab_ghs.c +++ b/drivers/soc/qcom/hab/hab_ghs.c @@ -86,7 +86,7 @@ static void ghs_irq_handler(void *cookie) (struct ghs_vdev *) (pchan ? pchan->hyp_data : NULL); if (dev) - tasklet_schedule(&dev->task); + tasklet_hi_schedule(&dev->task); } static int get_dt_name_idx(int vmid_base, int mmid, diff --git a/drivers/soc/qcom/hab/hab_qvm.c b/drivers/soc/qcom/hab/hab_qvm.c index f9f72fc1beb4..6f1cf26334f2 100644 --- a/drivers/soc/qcom/hab/hab_qvm.c +++ b/drivers/soc/qcom/hab/hab_qvm.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2016-2018, The Linux Foundation. All rights reserved. +/* Copyright (c) 2016-2019, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and @@ -80,7 +80,7 @@ static irqreturn_t shm_irq_handler(int irq, void *_pchan) if (status & 0xffff) {/*source bitmask indicator*/ rc = IRQ_HANDLED; - tasklet_schedule(&dev->task); + tasklet_hi_schedule(&dev->task); } } return rc;