Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aca46dd2 authored by Yong Ding's avatar Yong Ding
Browse files

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: I32684fb4b2c05285b40d164ec5df8d1eb8eba114
Signed-off-by: default avatarYong Ding <yongding@codeaurora.org>
parent ea0ee416
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/* Copyright (c) 2019, The Linux Foundation. All rights reserved.
/* Copyright (c) 2019-2020, 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
@@ -46,7 +46,7 @@ static void ghs_irq_handler(void *cookie)
		(struct ghs_vdev *) (pchan ? pchan->hyp_data : NULL);

	if (dev)
		tasklet_schedule(&dev->os_data->task);
		tasklet_hi_schedule(&dev->os_data->task);
}

int hab_gipc_ep_attach(int is_be, char *name, int vmid_remote,
+2 −2
Original line number Diff line number Diff line
/* Copyright (c) 2019, The Linux Foundation. All rights reserved.
/* Copyright (c) 2019-2020, 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
@@ -50,7 +50,7 @@ static irqreturn_t shm_irq_handler(int irq, void *_pchan)

		if (status & 0xffff) {/*source bitmask indicator*/
			rc = IRQ_HANDLED;
			tasklet_schedule(&dev->os_data->task);
			tasklet_hi_schedule(&dev->os_data->task);
		}
	}
	return rc;