Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 376381
b: refs/heads/master
c: df97729
h: refs/heads/master
i:
  376379: 232df6d
v: v3
  • Loading branch information
Imre Deak authored and Daniel Vetter committed May 22, 2013
1 parent 299a416 commit 73596c0
Show file tree
Hide file tree
Showing 2 changed files with 16 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: e3de42b68478a8c95dd27520e9adead2af9477a5
refs/heads/master: df97729f1bcb5055ba414f08b48364d46c6baef0
15 changes: 15 additions & 0 deletions trunk/drivers/gpu/drm/i915/i915_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -1943,4 +1943,19 @@ static inline void __user *to_user_ptr(u64 address)
return (void __user *)(uintptr_t)address;
}

static inline unsigned long msecs_to_jiffies_timeout(const unsigned int m)
{
unsigned long j = msecs_to_jiffies(m);

return min_t(unsigned long, MAX_JIFFY_OFFSET, j + 1);
}

static inline unsigned long
timespec_to_jiffies_timeout(const struct timespec *value)
{
unsigned long j = timespec_to_jiffies(value);

return min_t(unsigned long, MAX_JIFFY_OFFSET, j + 1);
}

#endif

0 comments on commit 73596c0

Please sign in to comment.