[Linux-hls-cvs] qosman/src clnt-us.c,1.2,1.3
Status: Pre-Alpha
Brought to you by:
lucabe
|
From: Luca A. <lu...@us...> - 2005-08-24 15:23:46
|
Update of /cvsroot/linux-hls/qosman/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26352/src Modified Files: clnt-us.c Log Message: Avoid setting a crazy value for the first "old (compressed) bandwidth"... Index: clnt-us.c =================================================================== RCS file: /cvsroot/linux-hls/qosman/src/clnt-us.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** clnt-us.c 9 Apr 2004 13:39:57 -0000 1.2 --- clnt-us.c 24 Aug 2005 15:23:38 -0000 1.3 *************** *** 122,126 **** struct sigaction sa; struct itimerval it; ! /* Remember: My ID is my PID... */ qtask_register(getpid(), USEC2BAND(q, period), w, period, drel, q); --- 122,138 ---- struct sigaction sa; struct itimerval it; ! ! sp.sched_size = sizeof(struct cbs_param); ! sp.sched_p = &cs; ! cs.signature = CBS_SIGNATURE; ! cs.max_budget = q; ! cs.period = drel; ! res = sched_setscheduler(getpid(), SCHED_CBS, &sp); ! if (res < 0) { ! cprintf("Cannot create the CPU reserve for task %s!!!\n", name); ! return NULLID; ! } ! ! /* Remember: My ID is my PID... */ qtask_register(getpid(), USEC2BAND(q, period), w, period, drel, q); *************** *** 158,173 **** } - /* Here, we must transform the child in a CBS guy */ - sp.sched_size = sizeof(struct cbs_param); - sp.sched_p = &cs; - cs.signature = CBS_SIGNATURE; - cs.max_budget = q; - cs.period = drel; - res = sched_setscheduler(pid, SCHED_CBS, &sp); - if (res < 0) { - cprintf("Cannot create the CPU reserve for task %s!!!\n", name); - return NULLID; - } - return pid; } --- 170,173 ---- |