From 8244de0729526c23875a614335c49c711b6574a0 Mon Sep 17 00:00:00 2001
From: dinesh
Date: Thu, 26 Sep 2019 14:47:12 +0530
Subject: [PATCH] gpu: nvgpu: Change in scheduler class for threads
As per one of the requirement priority of interrupt threads in
qnx should be changed to 21 with SCHED_RR class. NVGPU driver
is creating threads with FIFO class. This makes delay in scheduling
other interrupt threads.
This is added to change the schduler class to RR.
JIRA NVGPU-4121
Change-Id: Ie0a5f08b95cfab4ffbbd3c0c74a53324c64c202f
Signed-off-by: dinesh
Reviewed-on: https://git-master.nvidia.com/r/2206210
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svc-mobile-coverity
Reviewed-by: svc-mobile-misra
GVS: Gerrit_Virtual_Submit
Reviewed-by: Shashank Singh
Reviewed-by: Ankur Kishore
Reviewed-by: mobile promotions
Tested-by: mobile promotions
---
drivers/gpu/nvgpu/os/posix/thread.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/nvgpu/os/posix/thread.c b/drivers/gpu/nvgpu/os/posix/thread.c
index af0203234..49df60b54 100644
--- a/drivers/gpu/nvgpu/os/posix/thread.c
+++ b/drivers/gpu/nvgpu/os/posix/thread.c
@@ -157,7 +157,7 @@ int nvgpu_thread_create_priority(struct nvgpu_thread *thread,
return ret;
}
- ret = pthread_attr_setschedpolicy(&attr, SCHED_FIFO);
+ ret = pthread_attr_setschedpolicy(&attr, SCHED_RR);
if (ret != 0) {
(void) pthread_attr_destroy(&attr);
return ret;