diff options
| author | Andrei Vagin <[email protected]> | 2019-11-12 01:26:58 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2020-01-14 12:20:51 +0100 |
| commit | 9c71a2e8a757bc6aee256bc97c6fb711144b0a0f (patch) | |
| tree | a0a11da36b1c82409506d496dc7b779b9d8bce27 /drivers/fpga/fpga-bridge.c | |
| parent | 2f58bf909abf9670fa4e848b433dc12ba4c2a44e (diff) | |
posix-clocks: Introduce clock_get_ktime() callback
The callsite in common_timer_get() has already a comment:
/*
* The timespec64 based conversion is suboptimal, but it's not
* worth to implement yet another callback.
*/
kc->clock_get(timr->it_clock, &ts64);
now = timespec64_to_ktime(ts64);
The upcoming support for time namespaces requires to have access to:
- The time in a task's time namespace for sys_clock_gettime()
- The time in the root name space for common_timer_get()
That adds a valid reason to finally implement a separate callback which
returns the time in ktime_t format.
Suggested-by: Thomas Gleixner <[email protected]>
Co-developed-by: Dmitry Safonov <[email protected]>
Signed-off-by: Andrei Vagin <[email protected]>
Signed-off-by: Dmitry Safonov <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions