The tasklet's call date was not reset, so if profiling was enabled while
some tasklets were in the run queue, their initial random value could be
used to preload a bogus initial latency value into the task profiling bin.
Let's just zero the initial value.
This should be backported to 2.4 as it was brought with initial commit
b2285de04 ("MINOR: tasks: also compute the tasklet latency when DEBUG_TASK
is set"). The impact is very low though.
t->process = NULL;
t->tid = -1;
#ifdef DEBUG_TASK
+ t->call_date = 0;
t->debug.caller_idx = 0;
#endif
LIST_INIT(&t->list);