Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 341906
b: refs/heads/master
c: fd3065b
h: refs/heads/master
v: v3
  • Loading branch information
Jan Glauber authored and David S. Miller committed Dec 7, 2012
1 parent 3aaa3d2 commit 4e35ab0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c63da990cd63153ce5203f96822638a7ef0f9bf7
refs/heads/master: fd3065b25b69ce345073bbd294a73343a608fd8b
14 changes: 1 addition & 13 deletions trunk/drivers/net/ethernet/chelsio/cxgb/sge.c
Original file line number Diff line number Diff line change
Expand Up @@ -367,18 +367,6 @@ void t1_sched_set_drain_bits_per_us(struct sge *sge, unsigned int port,

#endif /* 0 */


/*
* get_clock() implements a ns clock (see ktime_get)
*/
static inline ktime_t get_clock(void)
{
struct timespec ts;

ktime_get_ts(&ts);
return timespec_to_ktime(ts);
}

/*
* tx_sched_init() allocates resources and does basic initialization.
*/
Expand Down Expand Up @@ -411,7 +399,7 @@ static int tx_sched_init(struct sge *sge)
static inline int sched_update_avail(struct sge *sge)
{
struct sched *s = sge->tx_sched;
ktime_t now = get_clock();
ktime_t now = ktime_get();
unsigned int i;
long long delta_time_ns;

Expand Down

0 comments on commit 4e35ab0

Please sign in to comment.