projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21e55c1
)
posix-timers: Add forward/remaining callbacks
author
Thomas Gleixner
<
[email protected]
>
Tue, 30 May 2017 21:15:49 +0000
(23:15 +0200)
committer
Thomas Gleixner
<
[email protected]
>
Sun, 4 Jun 2017 13:40:27 +0000
(15:40 +0200)
Add two callbacks to kclock which allow using common_)timer_get() for both
hrtimer and alarm timer based clocks.
Signed-off-by: Thomas Gleixner <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Cc: John Stultz <
[email protected]
>
Link:
http://lkml.kernel.org/r/
[email protected]
kernel/time/posix-timers.h
patch
|
blob
|
history
diff --git
a/kernel/time/posix-timers.h
b/kernel/time/posix-timers.h
index 1f6f6f9a6a370fe58496fa9252ffb72785e6bb60..3bc5b74c342ff8fec284d96bc46a876825755d84 100644
(file)
--- a/
kernel/time/posix-timers.h
+++ b/
kernel/time/posix-timers.h
@@
-19,6
+19,8
@@
struct k_clock {
void (*timer_get)(struct k_itimer *timr,
struct itimerspec64 *cur_setting);
void (*timer_rearm)(struct k_itimer *timr);
+ int (*timer_forward)(struct k_itimer *timr, ktime_t now);
+ ktime_t (*timer_remaining)(struct k_itimer *timr, ktime_t now);
};
extern const struct k_clock clock_posix_cpu;