[Linux-hls-cvs] hls/linux hls_ctl.c,1.6,1.7
Status: Pre-Alpha
Brought to you by:
lucabe
|
From: <lu...@us...> - 2003-08-27 17:52:04
|
Update of /cvsroot/linux-hls/hls/linux
In directory sc8-pr-cvs1:/tmp/cvs-serv31071
Modified Files:
hls_ctl.c
Log Message:
FIX: When moving a task between two schedulers, the Parent field in the
thread scheduler was not properly set to the new value.
As a result, the /proc/HLS/tasks entry was not updated...
Index: hls_ctl.c
===================================================================
RCS file: /cvsroot/linux-hls/hls/linux/hls_ctl.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** hls_ctl.c 25 Feb 2003 09:18:55 -0000 1.6
--- hls_ctl.c 27 Aug 2003 17:52:00 -0000 1.7
***************
*** 101,106 ****
status = th1->vp->TopSched->CB->B_RegisterVP(new_sched, th_inst, th1->vp);
HLS_ASSERT(status == HLS_SUCCESS);
-
HLSDbgPrint(3, ("(infr) registered\n"));
/* This cannot be done until the sched param are set...
--- 101,107 ----
status = th1->vp->TopSched->CB->B_RegisterVP(new_sched, th_inst, th1->vp);
HLS_ASSERT(status == HLS_SUCCESS);
HLSDbgPrint(3, ("(infr) registered\n"));
+
+ th_inst->Parent = new_sched;
/* This cannot be done until the sched param are set...
|