Re: [PATCH] fix granularity of task_u/stime(), v2

From: Balbir Singh
Date: Mon Nov 23 2009 - 05:25:39 EST


* Stanislaw Gruszka <sgruszka@xxxxxxxxxx> [2009-11-23 11:09:26]:
[snip]
> +
> + utime = task_utime(tsk);
> + stime = task_stime(tsk);
> + if (tsk->utime > utime || tsk->stime > stime) {
> + utime = tsk->utime;
> + stime = tsk->stime;
> + }

Won't this condition be problematic, since it can reset stime
when tsk->utime > utime for example?
--
Balbir
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/