|
@@ -484,7 +484,7 @@ void qdisc_watchdog_schedule(struct qdisc_watchdog *wd, psched_time_t expires)
|
|
|
|
|
|
wd->qdisc->flags |= TCQ_F_THROTTLED;
|
|
wd->qdisc->flags |= TCQ_F_THROTTLED;
|
|
time = ktime_set(0, 0);
|
|
time = ktime_set(0, 0);
|
|
- time = ktime_add_ns(time, PSCHED_US2NS(expires));
|
|
|
|
|
|
+ time = ktime_add_ns(time, PSCHED_TICKS2NS(expires));
|
|
hrtimer_start(&wd->timer, time, HRTIMER_MODE_ABS);
|
|
hrtimer_start(&wd->timer, time, HRTIMER_MODE_ABS);
|
|
}
|
|
}
|
|
EXPORT_SYMBOL(qdisc_watchdog_schedule);
|
|
EXPORT_SYMBOL(qdisc_watchdog_schedule);
|
|
@@ -1680,7 +1680,7 @@ static int psched_show(struct seq_file *seq, void *v)
|
|
|
|
|
|
hrtimer_get_res(CLOCK_MONOTONIC, &ts);
|
|
hrtimer_get_res(CLOCK_MONOTONIC, &ts);
|
|
seq_printf(seq, "%08x %08x %08x %08x\n",
|
|
seq_printf(seq, "%08x %08x %08x %08x\n",
|
|
- (u32)NSEC_PER_USEC, (u32)PSCHED_US2NS(1),
|
|
|
|
|
|
+ (u32)NSEC_PER_USEC, (u32)PSCHED_TICKS2NS(1),
|
|
1000000,
|
|
1000000,
|
|
(u32)NSEC_PER_SEC/(u32)ktime_to_ns(timespec_to_ktime(ts)));
|
|
(u32)NSEC_PER_SEC/(u32)ktime_to_ns(timespec_to_ktime(ts)));
|
|
|
|
|