diff options
Diffstat (limited to 'net/sched/sch_api.c')
-rw-r--r-- | net/sched/sch_api.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c index d84f7e734cd7..a181b484812a 100644 --- a/net/sched/sch_api.c +++ b/net/sched/sch_api.c | |||
@@ -493,7 +493,7 @@ void qdisc_watchdog_init(struct qdisc_watchdog *wd, struct Qdisc *qdisc) | |||
493 | } | 493 | } |
494 | EXPORT_SYMBOL(qdisc_watchdog_init); | 494 | EXPORT_SYMBOL(qdisc_watchdog_init); |
495 | 495 | ||
496 | void qdisc_watchdog_schedule(struct qdisc_watchdog *wd, psched_time_t expires) | 496 | void qdisc_watchdog_schedule_ns(struct qdisc_watchdog *wd, u64 expires) |
497 | { | 497 | { |
498 | if (test_bit(__QDISC_STATE_DEACTIVATED, | 498 | if (test_bit(__QDISC_STATE_DEACTIVATED, |
499 | &qdisc_root_sleeping(wd->qdisc)->state)) | 499 | &qdisc_root_sleeping(wd->qdisc)->state)) |
@@ -502,10 +502,10 @@ void qdisc_watchdog_schedule(struct qdisc_watchdog *wd, psched_time_t expires) | |||
502 | qdisc_throttled(wd->qdisc); | 502 | qdisc_throttled(wd->qdisc); |
503 | 503 | ||
504 | hrtimer_start(&wd->timer, | 504 | hrtimer_start(&wd->timer, |
505 | ns_to_ktime(PSCHED_TICKS2NS(expires)), | 505 | ns_to_ktime(expires), |
506 | HRTIMER_MODE_ABS); | 506 | HRTIMER_MODE_ABS); |
507 | } | 507 | } |
508 | EXPORT_SYMBOL(qdisc_watchdog_schedule); | 508 | EXPORT_SYMBOL(qdisc_watchdog_schedule_ns); |
509 | 509 | ||
510 | void qdisc_watchdog_cancel(struct qdisc_watchdog *wd) | 510 | void qdisc_watchdog_cancel(struct qdisc_watchdog *wd) |
511 | { | 511 | { |
@@ -1768,7 +1768,7 @@ static int __net_init psched_net_init(struct net *net) | |||
1768 | { | 1768 | { |
1769 | struct proc_dir_entry *e; | 1769 | struct proc_dir_entry *e; |
1770 | 1770 | ||
1771 | e = proc_net_fops_create(net, "psched", 0, &psched_fops); | 1771 | e = proc_create("psched", 0, net->proc_net, &psched_fops); |
1772 | if (e == NULL) | 1772 | if (e == NULL) |
1773 | return -ENOMEM; | 1773 | return -ENOMEM; |
1774 | 1774 | ||
@@ -1777,7 +1777,7 @@ static int __net_init psched_net_init(struct net *net) | |||
1777 | 1777 | ||
1778 | static void __net_exit psched_net_exit(struct net *net) | 1778 | static void __net_exit psched_net_exit(struct net *net) |
1779 | { | 1779 | { |
1780 | proc_net_remove(net, "psched"); | 1780 | remove_proc_entry("psched", net->proc_net); |
1781 | } | 1781 | } |
1782 | #else | 1782 | #else |
1783 | static int __net_init psched_net_init(struct net *net) | 1783 | static int __net_init psched_net_init(struct net *net) |