[NET_SCHED]: Export real timer resolution in /proc/net/psched
authorPatrick McHardy <kaber@trash.net>
Fri, 16 Mar 2007 08:23:28 +0000 (01:23 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 26 Apr 2007 05:26:15 +0000 (22:26 -0700)
commit4361cb17f0df5491fe6e2c3ae1defc98e9a64a79
tree9574cea69126dc020eeaaf6da4e3dee75df5612d
parent00c04af9df3d26e5a8093da850e982a7b6aeada7
[NET_SCHED]: Export real timer resolution in /proc/net/psched

The timer resolution exported in /proc/net/psched is used by userspace to
calculate HTB's burst values. Currently it is set to HZ, since we're now
using hrtimers, use KTIME_MONOTONIC_RES, which makes HTB use smaller burst
values.

This patch also affects libnl, which incorrectly uses this value for
the SFQ perturbation parameter, which is always in seconds, and some
routing cache values, which are in USER_HZ, so both cases are broken
anyway.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_api.c