mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
drm/rockchip: modify priority of error_thread with sched_set_fifo_low()
(sched_priority = MAX_RT_PRIO - 1) is highest priority of the RT thread, it may affect RT performance, so use sched_set_fifo_low() will be better. Change-Id: I1de7aa5fbc20bd40fbc68956863dfd8c76e7f363 Signed-off-by: Liang Chen <cl@rock-chips.com>
This commit is contained in:
@@ -1858,7 +1858,6 @@ static DEVICE_ATTR(error_event, 0444, rockchip_drm_error_event_show, NULL);
|
||||
static void rockchip_drm_error_event_init(struct drm_device *drm_dev)
|
||||
{
|
||||
struct rockchip_drm_private *priv = drm_dev->dev_private;
|
||||
struct sched_param sched_param = { .sched_priority = MAX_RT_PRIO - 1 };
|
||||
int ret;
|
||||
|
||||
ret = device_create_file(drm_dev->dev, &dev_attr_error_event);
|
||||
@@ -1875,7 +1874,7 @@ static void rockchip_drm_error_event_init(struct drm_device *drm_dev)
|
||||
priv->error_event.thread = NULL;
|
||||
drm_err(drm_dev, "failed to run display error_event thread\n");
|
||||
} else {
|
||||
sched_setscheduler(priv->error_event.thread, SCHED_FIFO, &sched_param);
|
||||
sched_set_fifo_low(priv->error_event.thread);
|
||||
drm_info(drm_dev, "run display error_event monitor\n");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user