Commit:     4361cb17f0df5491fe6e2c3ae1defc98e9a64a79
Parent:     00c04af9df3d26e5a8093da850e982a7b6aeada7
Author:     Patrick McHardy <[EMAIL PROTECTED]>
AuthorDate: Fri Mar 16 01:23:28 2007 -0700
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Wed Apr 25 22:26:15 2007 -0700

    [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
    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
    Signed-off-by: Patrick McHardy <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
 net/sched/sch_api.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c
index 6bc395c..047ae62 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)
        seq_printf(seq, "%08x %08x %08x %08x\n",
                   (u32)NSEC_PER_USEC, (u32)PSCHED_US2NS(1),
-                  1000000, HZ);
+                  1000000, (u32)NSEC_PER_SEC/ktime_to_ns(KTIME_MONOTONIC_RES));
        return 0;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to