aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Elliott <gelliott@cs.unc.edu>2013-02-05 14:01:36 -0500
committerGlenn Elliott <gelliott@cs.unc.edu>2013-02-05 14:01:36 -0500
commitdd4c9d77928d67e3afa916b6f1a14e20f02ee67f (patch)
treed8bcbe30e5c9d61f3b93a0310c4d439c3e6b02bf
parentcd736578337f012c0acffa4b5296736c3902431e (diff)
Fix: get_nv_max_device_owner() was always ret null
-rw-r--r--litmus/nvidia_info.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/litmus/nvidia_info.c b/litmus/nvidia_info.c
index f5364df6fd69..29031f741fcf 100644
--- a/litmus/nvidia_info.c
+++ b/litmus/nvidia_info.c
@@ -517,13 +517,13 @@ struct task_struct* get_nv_max_device_owner(u32 target_device_id)
517 517
518 reg = &NV_DEVICE_REG[target_device_id]; 518 reg = &NV_DEVICE_REG[target_device_id];
519 519
520#ifdef CONFIG_SCHED_DEBUG_TRACE
521 if (!binheap_empty(&reg->owners)) { 520 if (!binheap_empty(&reg->owners)) {
522 struct task_struct *hp = container_of(binheap_top_entry(&reg->owners, struct rt_param, gpu_owner_node), 521 struct task_struct *hp = container_of(binheap_top_entry(&reg->owners, struct rt_param, gpu_owner_node),
523 struct task_struct, rt_param); 522 struct task_struct, rt_param);
524 TRACE_CUR("hp: %s/%d\n", hp->comm, hp->pid); 523 TRACE_CUR("hp: %s/%d\n", hp->comm, hp->pid);
524
525 owner = hp;
525 } 526 }
526#endif
527 527
528 return(owner); 528 return(owner);
529} 529}