diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/sched/sch_api.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c index 39d32780c80b..8ae137e3522b 100644 --- a/net/sched/sch_api.c +++ b/net/sched/sch_api.c | |||
@@ -1226,10 +1226,13 @@ EXPORT_SYMBOL(tcf_destroy_chain); | |||
1226 | #ifdef CONFIG_PROC_FS | 1226 | #ifdef CONFIG_PROC_FS |
1227 | static int psched_show(struct seq_file *seq, void *v) | 1227 | static int psched_show(struct seq_file *seq, void *v) |
1228 | { | 1228 | { |
1229 | struct timespec ts; | ||
1230 | |||
1231 | hrtimer_get_res(CLOCK_MONOTONIC, &ts); | ||
1229 | seq_printf(seq, "%08x %08x %08x %08x\n", | 1232 | seq_printf(seq, "%08x %08x %08x %08x\n", |
1230 | (u32)NSEC_PER_USEC, (u32)PSCHED_US2NS(1), | 1233 | (u32)NSEC_PER_USEC, (u32)PSCHED_US2NS(1), |
1231 | 1000000, | 1234 | 1000000, |
1232 | (u32)NSEC_PER_SEC/(u32)ktime_to_ns(KTIME_MONOTONIC_RES)); | 1235 | (u32)NSEC_PER_SEC/(u32)ktime_to_ns(timespec_to_ktime(ts))); |
1233 | 1236 | ||
1234 | return 0; | 1237 | return 0; |
1235 | } | 1238 | } |