Re: [PATCH] taskstats: Use real microsecond granularity for CPUtimes

From: Andrew Morton
Date: Mon Oct 11 2010 - 15:57:53 EST


On Mon, 11 Oct 2010 09:26:44 +0200
Michael Holzheu <holzheu@xxxxxxxxxxxxxxxxxx> wrote:

> The taskstats interface uses microsecond granularity for the user and
> system time values. The conversion from cputime to the taskstats values
> uses the cputime_to_msecs primitive which effectively limits the
> granularity to milliseconds. Add the cputime_to_usecs primitive for
> architectures that have better, more precise CPU time values. Remove
> cputime_to_msecs primitive because there is no more user left.

Fair enough.

msecs_to_cputime() never had any callers, and it replacement
usecs_to_cputime() doesn't have any callers either. Maybe we should
just zap it.


--
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/