aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched/sch_api.c
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2007-03-16 04:23:28 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-26 01:26:15 -0400
commit4361cb17f0df5491fe6e2c3ae1defc98e9a64a79 (patch)
tree9574cea69126dc020eeaaf6da4e3dee75df5612d /net/sched/sch_api.c
parent00c04af9df3d26e5a8093da850e982a7b6aeada7 (diff)
[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>
Diffstat (limited to 'net/sched/sch_api.c')
-rw-r--r--net/sched/sch_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c
index 6bc395cb235b..047ae62ff4fa 100644
--- a/net/sched/sch_api.c
+++ b/net/sched/sch_api.c
@@ -1216,7 +1216,7 @@ static int psched_show(struct seq_file *seq, void *v)
1216{ 1216{
1217 seq_printf(seq, "%08x %08x %08x %08x\n", 1217 seq_printf(seq, "%08x %08x %08x %08x\n",
1218 (u32)NSEC_PER_USEC, (u32)PSCHED_US2NS(1), 1218 (u32)NSEC_PER_USEC, (u32)PSCHED_US2NS(1),
1219 1000000, HZ); 1219 1000000, (u32)NSEC_PER_SEC/ktime_to_ns(KTIME_MONOTONIC_RES));
1220 1220
1221 return 0; 1221 return 0;
1222} 1222}