Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 91057
b: refs/heads/master
c: 57d3da2
h: refs/heads/master
i:
  91055: ac8545b
v: v3
  • Loading branch information
Ingo Molnar committed Apr 19, 2008
1 parent 2175986 commit 35cf0e4
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 79b3feffb10417f197d2ab48dd4fa3c0c9e7d788
refs/heads/master: 57d3da2911787a101a384532f4519f9640bae883
6 changes: 6 additions & 0 deletions trunk/include/linux/ktime.h
Original file line number Diff line number Diff line change
Expand Up @@ -327,4 +327,10 @@ extern void ktime_get_ts(struct timespec *ts);
/* Get the real (wall-) time in timespec format: */
#define ktime_get_real_ts(ts) getnstimeofday(ts)

static inline ktime_t ns_to_ktime(u64 ns)
{
static const ktime_t ktime_zero = { .tv64 = 0 };
return ktime_add_ns(ktime_zero, ns);
}

#endif

0 comments on commit 35cf0e4

Please sign in to comment.