aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/ethernet/chelsio/cxgb/sge.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb/sge.c b/drivers/net/ethernet/chelsio/cxgb/sge.c
index 9a0a85898a50..5328804779f4 100644
--- a/drivers/net/ethernet/chelsio/cxgb/sge.c
+++ b/drivers/net/ethernet/chelsio/cxgb/sge.c
@@ -367,18 +367,6 @@ void t1_sched_set_drain_bits_per_us(struct sge *sge, unsigned int port,
367 367
368#endif /* 0 */ 368#endif /* 0 */
369 369
370
371/*
372 * get_clock() implements a ns clock (see ktime_get)
373 */
374static inline ktime_t get_clock(void)
375{
376 struct timespec ts;
377
378 ktime_get_ts(&ts);
379 return timespec_to_ktime(ts);
380}
381
382/* 370/*
383 * tx_sched_init() allocates resources and does basic initialization. 371 * tx_sched_init() allocates resources and does basic initialization.
384 */ 372 */
@@ -411,7 +399,7 @@ static int tx_sched_init(struct sge *sge)
411static inline int sched_update_avail(struct sge *sge) 399static inline int sched_update_avail(struct sge *sge)
412{ 400{
413 struct sched *s = sge->tx_sched; 401 struct sched *s = sge->tx_sched;
414 ktime_t now = get_clock(); 402 ktime_t now = ktime_get();
415 unsigned int i; 403 unsigned int i;
416 long long delta_time_ns; 404 long long delta_time_ns;
417 405