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 <dt@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2206210
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Shashank Singh <shashsingh@nvidia.com>
Reviewed-by: Ankur Kishore <ankkishore@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
dinesh
2019-09-26 14:47:12 +05:30
committed by Alex Waterman
parent e340c9df05
commit 8244de0729

View File

@@ -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;