diff options
author | Eric Dumazet <edumazet@google.com> | 2014-08-22 21:32:09 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-08-22 22:57:23 -0400 |
commit | d2de875c6d4cbec8a99c880160181a3ed5b9992e (patch) | |
tree | 5dc09deacccbd946bc7f6b602c1b788fcdf842a6 /net/sched/sch_fq.c | |
parent | 3f8a2b746e3aece61f9c4714b86d1484d66461f0 (diff) |
net: use ktime_get_ns() and ktime_get_real_ns() helpers
ktime_get_ns() replaces ktime_to_ns(ktime_get())
ktime_get_real_ns() replaces ktime_to_ns(ktime_get_real())
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/sch_fq.c')
-rw-r--r-- | net/sched/sch_fq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sched/sch_fq.c b/net/sched/sch_fq.c index ba32c2b005d0..e12f997e1b4c 100644 --- a/net/sched/sch_fq.c +++ b/net/sched/sch_fq.c | |||
@@ -416,7 +416,7 @@ static void fq_check_throttled(struct fq_sched_data *q, u64 now) | |||
416 | static struct sk_buff *fq_dequeue(struct Qdisc *sch) | 416 | static struct sk_buff *fq_dequeue(struct Qdisc *sch) |
417 | { | 417 | { |
418 | struct fq_sched_data *q = qdisc_priv(sch); | 418 | struct fq_sched_data *q = qdisc_priv(sch); |
419 | u64 now = ktime_to_ns(ktime_get()); | 419 | u64 now = ktime_get_ns(); |
420 | struct fq_flow_head *head; | 420 | struct fq_flow_head *head; |
421 | struct sk_buff *skb; | 421 | struct sk_buff *skb; |
422 | struct fq_flow *f; | 422 | struct fq_flow *f; |
@@ -787,7 +787,7 @@ nla_put_failure: | |||
787 | static int fq_dump_stats(struct Qdisc *sch, struct gnet_dump *d) | 787 | static int fq_dump_stats(struct Qdisc *sch, struct gnet_dump *d) |
788 | { | 788 | { |
789 | struct fq_sched_data *q = qdisc_priv(sch); | 789 | struct fq_sched_data *q = qdisc_priv(sch); |
790 | u64 now = ktime_to_ns(ktime_get()); | 790 | u64 now = ktime_get_ns(); |
791 | struct tc_fq_qd_stats st = { | 791 | struct tc_fq_qd_stats st = { |
792 | .gc_flows = q->stat_gc_flows, | 792 | .gc_flows = q->stat_gc_flows, |
793 | .highprio_packets = q->stat_internal_packets, | 793 | .highprio_packets = q->stat_internal_packets, |