aboutsummaryrefslogtreecommitdiffstats
path: root/litmus/locking.c
diff options
context:
space:
mode:
authorGlenn Elliott <gelliott@cs.unc.edu>2013-11-04 17:44:58 -0500
committerGlenn Elliott <gelliott@cs.unc.edu>2013-11-04 17:44:58 -0500
commit31575bc6283016c0e1c054923cfd69df9039c5d8 (patch)
treeed5c525728b9492ef560ee33d148521cafc73afe /litmus/locking.c
parentb2e8772870c7821a3565de4e78c547b05fc71474 (diff)
Add auxiliary task support.
Auxiliary tasks helper threads to real-time tasks. These helper tasks may inherit the priority of the real-time task(s) in the process only if that real-time task is blocked/suspended (and it is not suspending because the job has completed). Otherwise, these threads are scheduled with a default priority greater than normal Linux threads, but lower than any other real-time task, including klmirqd threads.
Diffstat (limited to 'litmus/locking.c')
-rw-r--r--litmus/locking.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/litmus/locking.c b/litmus/locking.c
index 539d1c0b7592..4913309aa74a 100644
--- a/litmus/locking.c
+++ b/litmus/locking.c
@@ -879,11 +879,11 @@ void suspend_for_lock(void)
879#endif 879#endif
880 880
881#if defined(CONFIG_LITMUS_AFFINITY_LOCKING) && defined(CONFIG_LITMUS_NVIDIA) 881#if defined(CONFIG_LITMUS_AFFINITY_LOCKING) && defined(CONFIG_LITMUS_NVIDIA)
882 // disable tracking 882 /* disable tracking */
883 if(tsk_rt(t)->held_gpus) 883 if(tsk_rt(t)->held_gpus)
884 { 884 {
885 // tracking is actually stopped in schedule(), where it 885 /* tracking is actually stopped in schedule(), where it
886 // is also stopped upon preemption 886 is also stopped upon preemption */
887 tsk_rt(t)->suspend_gpu_tracker_on_block = 1; 887 tsk_rt(t)->suspend_gpu_tracker_on_block = 1;
888 } 888 }
889#endif 889#endif
@@ -891,7 +891,7 @@ void suspend_for_lock(void)
891 schedule(); 891 schedule();
892 892
893#if defined(CONFIG_LITMUS_AFFINITY_LOCKING) && defined(CONFIG_LITMUS_NVIDIA) 893#if defined(CONFIG_LITMUS_AFFINITY_LOCKING) && defined(CONFIG_LITMUS_NVIDIA)
894 // re-enable tracking 894 /* re-enable tracking */
895 if(tsk_rt(t)->held_gpus) 895 if(tsk_rt(t)->held_gpus)
896 tsk_rt(t)->suspend_gpu_tracker_on_block = 0; 896 tsk_rt(t)->suspend_gpu_tracker_on_block = 0;
897#endif 897#endif