diff options
Diffstat (limited to 'litmus/nvidia_info.c')
-rw-r--r-- | litmus/nvidia_info.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/litmus/nvidia_info.c b/litmus/nvidia_info.c index ae4ad446408b..be0c09b19c6d 100644 --- a/litmus/nvidia_info.c +++ b/litmus/nvidia_info.c | |||
@@ -320,7 +320,6 @@ int init_nvidia_info(void) | |||
320 | 320 | ||
321 | init_nv_device_reg(); | 321 | init_nv_device_reg(); |
322 | return(0); | 322 | return(0); |
323 | // return(-1); | ||
324 | } | 323 | } |
325 | } | 324 | } |
326 | 325 | ||
@@ -650,7 +649,6 @@ static int gpu_klmirqd_decrease_priority(struct task_struct *klmirqd, struct tas | |||
650 | long enable_gpu_owner(struct task_struct *t) | 649 | long enable_gpu_owner(struct task_struct *t) |
651 | { | 650 | { |
652 | long retval = 0; | 651 | long retval = 0; |
653 | // unsigned long flags; | ||
654 | int gpu; | 652 | int gpu; |
655 | nv_device_registry_t *reg; | 653 | nv_device_registry_t *reg; |
656 | 654 | ||
@@ -675,8 +673,6 @@ long enable_gpu_owner(struct task_struct *t) | |||
675 | /* update the registration (and maybe klmirqd) */ | 673 | /* update the registration (and maybe klmirqd) */ |
676 | reg = &NV_DEVICE_REG[gpu]; | 674 | reg = &NV_DEVICE_REG[gpu]; |
677 | 675 | ||
678 | // raw_spin_lock_irqsave(®->lock, flags); | ||
679 | |||
680 | binheap_add(&tsk_rt(t)->gpu_owner_node, ®->owners, | 676 | binheap_add(&tsk_rt(t)->gpu_owner_node, ®->owners, |
681 | struct rt_param, gpu_owner_node); | 677 | struct rt_param, gpu_owner_node); |
682 | 678 | ||
@@ -693,8 +689,6 @@ long enable_gpu_owner(struct task_struct *t) | |||
693 | } | 689 | } |
694 | #endif | 690 | #endif |
695 | 691 | ||
696 | // raw_spin_unlock_irqsave(®->lock, flags); | ||
697 | |||
698 | out: | 692 | out: |
699 | return retval; | 693 | return retval; |
700 | } | 694 | } |
@@ -703,7 +697,6 @@ out: | |||
703 | long disable_gpu_owner(struct task_struct *t) | 697 | long disable_gpu_owner(struct task_struct *t) |
704 | { | 698 | { |
705 | long retval = 0; | 699 | long retval = 0; |
706 | // unsigned long flags; | ||
707 | int gpu; | 700 | int gpu; |
708 | nv_device_registry_t *reg; | 701 | nv_device_registry_t *reg; |
709 | 702 | ||
@@ -731,9 +724,6 @@ long disable_gpu_owner(struct task_struct *t) | |||
731 | 724 | ||
732 | reg = &NV_DEVICE_REG[gpu]; | 725 | reg = &NV_DEVICE_REG[gpu]; |
733 | 726 | ||
734 | // raw_spin_lock_irqsave(®->lock, flags); | ||
735 | |||
736 | |||
737 | #ifdef CONFIG_LITMUS_SOFTIRQD | 727 | #ifdef CONFIG_LITMUS_SOFTIRQD |
738 | hp = container_of(binheap_top_entry(®->owners, struct rt_param, gpu_owner_node), | 728 | hp = container_of(binheap_top_entry(®->owners, struct rt_param, gpu_owner_node), |
739 | struct task_struct, rt_param); | 729 | struct task_struct, rt_param); |
@@ -761,9 +751,6 @@ long disable_gpu_owner(struct task_struct *t) | |||
761 | binheap_delete(&tsk_rt(t)->gpu_owner_node, ®->owners); | 751 | binheap_delete(&tsk_rt(t)->gpu_owner_node, ®->owners); |
762 | #endif | 752 | #endif |
763 | 753 | ||
764 | // raw_spin_unlock_irqsave(®->lock, flags); | ||
765 | |||
766 | |||
767 | out: | 754 | out: |
768 | return retval; | 755 | return retval; |
769 | } | 756 | } |
@@ -792,15 +779,11 @@ int gpu_owner_increase_priority(struct task_struct *t) | |||
792 | gpu = find_first_bit(&tsk_rt(t)->held_gpus, sizeof(tsk_rt(t)->held_gpus)); | 779 | gpu = find_first_bit(&tsk_rt(t)->held_gpus, sizeof(tsk_rt(t)->held_gpus)); |
793 | 780 | ||
794 | if (!binheap_is_in_heap(&tsk_rt(t)->gpu_owner_node)) { | 781 | if (!binheap_is_in_heap(&tsk_rt(t)->gpu_owner_node)) { |
795 | WARN_ON(!is_running(t) && !tsk_rt(t)->hide_from_gpu); | ||
796 | TRACE_CUR("nv klmirqd may not inherit from %s/%d on GPU %d\n", | 782 | TRACE_CUR("nv klmirqd may not inherit from %s/%d on GPU %d\n", |
797 | t->comm, t->pid, gpu); | 783 | t->comm, t->pid, gpu); |
798 | goto out; | 784 | goto out; |
799 | } | 785 | } |
800 | 786 | ||
801 | |||
802 | |||
803 | |||
804 | TRACE_CUR("task %s/%d on GPU %d increasing priority.\n", t->comm, t->pid, gpu); | 787 | TRACE_CUR("task %s/%d on GPU %d increasing priority.\n", t->comm, t->pid, gpu); |
805 | reg = &NV_DEVICE_REG[gpu]; | 788 | reg = &NV_DEVICE_REG[gpu]; |
806 | 789 | ||
@@ -842,7 +825,6 @@ int gpu_owner_decrease_priority(struct task_struct *t) | |||
842 | gpu = find_first_bit(&tsk_rt(t)->held_gpus, sizeof(tsk_rt(t)->held_gpus)); | 825 | gpu = find_first_bit(&tsk_rt(t)->held_gpus, sizeof(tsk_rt(t)->held_gpus)); |
843 | 826 | ||
844 | if (!binheap_is_in_heap(&tsk_rt(t)->gpu_owner_node)) { | 827 | if (!binheap_is_in_heap(&tsk_rt(t)->gpu_owner_node)) { |
845 | WARN_ON(!is_running(t) && !tsk_rt(t)->hide_from_gpu); | ||
846 | TRACE_CUR("nv klmirqd may not inherit from %s/%d on GPU %d\n", | 828 | TRACE_CUR("nv klmirqd may not inherit from %s/%d on GPU %d\n", |
847 | t->comm, t->pid, gpu); | 829 | t->comm, t->pid, gpu); |
848 | goto out; | 830 | goto out; |