Skip to content
Snippets Groups Projects
Commit c31e1304 authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

task timer should not include overheads from unlockres and enqueue.

parent f4c7a89d
No related branches found
No related tags found
No related merge requests found
......@@ -499,6 +499,10 @@ void qsched_done ( struct qsched *s , struct task *t ) {
TIMER_TIC
/* Set the task stats. */
t->toc = getticks();
t->cost = t->toc - t->tic;
/* Release this task's locks. */
for ( k = 0 ; k < t->nr_locks ; k++ )
qsched_unlockres( s , t->locks[k] );
......@@ -515,10 +519,6 @@ void qsched_done ( struct qsched *s , struct task *t ) {
}
/* Set the task stats. */
t->toc = getticks();
t->cost = t->toc - t->tic;
/* Decrease the number of tasks in this space. */
atomic_dec( &s->waiting );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment