diff options
Diffstat (limited to 'litmus/rt_domain.c')
-rw-r--r-- | litmus/rt_domain.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/litmus/rt_domain.c b/litmus/rt_domain.c index 5264d2546a7f..e6ccf04cecf0 100644 --- a/litmus/rt_domain.c +++ b/litmus/rt_domain.c | |||
@@ -417,14 +417,12 @@ static void pd_requeue(domain_t *dom, struct task_struct *task) | |||
417 | 417 | ||
418 | if (is_released(task, litmus_clock())) { | 418 | if (is_released(task, litmus_clock())) { |
419 | __add_ready(domain, task); | 419 | __add_ready(domain, task); |
420 | /* tsk_rt(task)->go = 1; */ | ||
421 | VTRACE("going, rt: adding %s/%d (%llu, %llu) rel=%llu to ready queue at %llu\n", | 420 | VTRACE("going, rt: adding %s/%d (%llu, %llu) rel=%llu to ready queue at %llu\n", |
422 | task->comm, task->pid, get_exec_cost(task), get_rt_period(task), | 421 | task->comm, task->pid, get_exec_cost(task), get_rt_period(task), |
423 | get_release(task), litmus_clock()); | 422 | get_release(task), litmus_clock()); |
424 | } else { | 423 | } else { |
425 | /* task has to wait for next release */ | 424 | /* task has to wait for next release */ |
426 | VTRACE_TASK(task, "not going, add release(), rel=%llu\n", get_release(task)); | 425 | VTRACE_TASK(task, "not going, add release(), rel=%llu\n", get_release(task)); |
427 | /* tsk_rt(task)->go = 0; */ | ||
428 | add_release(domain, task); | 426 | add_release(domain, task); |
429 | } | 427 | } |
430 | 428 | ||
@@ -437,10 +435,6 @@ static void pd_requeue(domain_t *dom, struct task_struct *task) | |||
437 | static struct task_struct* pd_take_ready(domain_t *dom) | 435 | static struct task_struct* pd_take_ready(domain_t *dom) |
438 | { | 436 | { |
439 | struct task_struct *t = __take_ready((rt_domain_t*)dom->data); | 437 | struct task_struct *t = __take_ready((rt_domain_t*)dom->data); |
440 | if (t) { | ||
441 | /* TRACE_TASK(t, "going\n"); */ | ||
442 | /* tsk_rt(t)->go = 1; */ | ||
443 | } | ||
444 | return t; | 438 | return t; |
445 | } | 439 | } |
446 | 440 | ||
@@ -451,10 +445,6 @@ static struct task_struct* pd_take_ready(domain_t *dom) | |||
451 | static struct task_struct* pd_peek_ready(domain_t *dom) | 445 | static struct task_struct* pd_peek_ready(domain_t *dom) |
452 | { | 446 | { |
453 | struct task_struct *t = __peek_ready((rt_domain_t*)dom->data); | 447 | struct task_struct *t = __peek_ready((rt_domain_t*)dom->data); |
454 | /* if (t) { */ | ||
455 | /* TRACE_TASK(t, "going\n"); */ | ||
456 | /* tsk_rt(t)->go = 1; */ | ||
457 | /* } */ | ||
458 | return t; | 448 | return t; |
459 | } | 449 | } |
460 | 450 | ||
@@ -462,11 +452,6 @@ static void pd_remove(domain_t *dom, struct task_struct *task) | |||
462 | { | 452 | { |
463 | if (is_queued(task)) | 453 | if (is_queued(task)) |
464 | remove((rt_domain_t*)dom->data, task); | 454 | remove((rt_domain_t*)dom->data, task); |
465 | /* if (is_queued(task) && tsk_rt(task)->go) { */ | ||
466 | /* remove((rt_domain_t*)dom->data, task); */ | ||
467 | /* } else if (is_queued(task)) { */ | ||
468 | /* VTRACE_TASK(task, "Did not remove cause of nogo\n"); */ | ||
469 | /* } */ | ||
470 | } | 455 | } |
471 | 456 | ||
472 | /* pd_domain_init - create a generic domain wrapper for an rt_domain | 457 | /* pd_domain_init - create a generic domain wrapper for an rt_domain |