Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 58920
b: refs/heads/master
c: 1e180f7
h: refs/heads/master
v: v3
  • Loading branch information
Arnaldo Carvalho de Melo authored and David S. Miller committed Jul 11, 2007
1 parent 577e2eb commit 01e71f6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f1c91da44728fba24927e44056a56e507c11cf7b
refs/heads/master: 1e180f726a58089d15637b5495fecbad8c50c833
5 changes: 5 additions & 0 deletions trunk/include/linux/ktime.h
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,11 @@ static inline s64 ktime_us_delta(const ktime_t later, const ktime_t earlier)
return ktime_to_us(ktime_sub(later, earlier));
}

static inline ktime_t ktime_add_us(const ktime_t kt, const u64 usec)
{
return ktime_add_ns(kt, usec * 1000);
}

/*
* The resolution of the clocks. The resolution value is returned in
* the clock_getres() system call to give application programmers an
Expand Down

0 comments on commit 01e71f6

Please sign in to comment.