mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
rxrpc: Add ktime_sub_ms()
Add a ktime_sub_ms() to go with ktime_add_ms() and co. for use in AF_RXRPC RTT determination. Signed-off-by: David Howells <dhowells@redhat.com>
This commit is contained in:
parent
7aa51da7c8
commit
77f2efcbdd
1 changed files with 5 additions and 0 deletions
|
|
@ -231,6 +231,11 @@ static inline ktime_t ktime_sub_us(const ktime_t kt, const u64 usec)
|
|||
return ktime_sub_ns(kt, usec * NSEC_PER_USEC);
|
||||
}
|
||||
|
||||
static inline ktime_t ktime_sub_ms(const ktime_t kt, const u64 msec)
|
||||
{
|
||||
return ktime_sub_ns(kt, msec * NSEC_PER_MSEC);
|
||||
}
|
||||
|
||||
extern ktime_t ktime_add_safe(const ktime_t lhs, const ktime_t rhs);
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue