/kernel/time/ |
D | alarmtimer.c | 47 ktime_t (*get_ktime)(void); 55 static ktime_t freezer_expires; 56 static ktime_t freezer_delta; 224 ktime_t alarm_expires_remaining(const struct alarm *alarm) in alarm_expires_remaining() 243 ktime_t min, now, expires; in alarmtimer_suspend() 265 ktime_t delta; in alarmtimer_suspend() 326 enum alarmtimer_restart (*function)(struct alarm *, ktime_t)) in __alarm_init() argument 342 enum alarmtimer_restart (*function)(struct alarm *, ktime_t)) in alarm_init() argument 355 void alarm_start(struct alarm *alarm, ktime_t start) in alarm_start() 375 void alarm_start_relative(struct alarm *alarm, ktime_t start) in alarm_start_relative() [all …]
|
D | tick-sched.h | 71 ktime_t last_tick; 72 ktime_t next_tick; 74 ktime_t idle_waketime; 79 ktime_t idle_entrytime; 87 ktime_t idle_expires; 92 ktime_t idle_exittime; 93 ktime_t idle_sleeptime; 94 ktime_t iowait_sleeptime;
|
D | tick-sched.c | 53 static ktime_t last_jiffies_update; 58 static void tick_do_update_jiffies64(ktime_t now) in tick_do_update_jiffies64() 61 ktime_t delta, nextp; in tick_do_update_jiffies64() 158 static ktime_t tick_init_jiffy_update(void) in tick_init_jiffy_update() 160 ktime_t period; in tick_init_jiffy_update() 186 static void tick_sched_do_timer(struct tick_sched *ts, ktime_t now) in tick_sched_do_timer() 653 static void tick_nohz_update_jiffies(ktime_t now) in tick_nohz_update_jiffies() 666 static void tick_nohz_stop_idle(struct tick_sched *ts, ktime_t now) in tick_nohz_stop_idle() 668 ktime_t delta; in tick_nohz_stop_idle() 698 static u64 get_cpu_sleep_time_us(struct tick_sched *ts, ktime_t *sleeptime, in get_cpu_sleep_time_us() [all …]
|
D | hrtimer.c | 198 ktime_t expires; in hrtimer_check_target() 307 s64 __ktime_divns(const ktime_t kt, s64 div) in __ktime_divns() 331 ktime_t ktime_add_safe(const ktime_t lhs, const ktime_t rhs) in ktime_add_safe() 333 ktime_t res = ktime_add_unsafe(lhs, rhs); in ktime_add_safe() 506 static ktime_t __hrtimer_next_event_base(struct hrtimer_cpu_base *cpu_base, in __hrtimer_next_event_base() 509 ktime_t expires_next) in __hrtimer_next_event_base() 512 ktime_t expires; in __hrtimer_next_event_base() 572 static ktime_t 577 ktime_t expires_next = KTIME_MAX; in __hrtimer_get_next_event() 598 static ktime_t hrtimer_update_next_event(struct hrtimer_cpu_base *cpu_base) in hrtimer_update_next_event() [all …]
|
D | posix-timers.h | 13 ktime_t (*clock_get_ktime)(const clockid_t which_clock); 25 s64 (*timer_forward)(struct k_itimer *timr, ktime_t now); 26 ktime_t (*timer_remaining)(struct k_itimer *timr, ktime_t now); 28 void (*timer_arm)(struct k_itimer *timr, ktime_t expires,
|
D | timekeeping.h | 7 extern ktime_t ktime_get_update_offsets_now(unsigned int *cwsseq, 8 ktime_t *offs_real, 9 ktime_t *offs_boot, 10 ktime_t *offs_tai);
|
D | tick-internal.h | 17 extern ktime_t tick_next_period; 56 ktime_t expires, bool force); 102 ktime_t nextevt); 103 extern int tick_program_event(ktime_t expires, int force); 116 ktime_t nextevt) { BUG(); } in tick_setup_oneshot() 118 static inline int tick_program_event(ktime_t expires, int force) { return 0; } in tick_program_event()
|
D | timekeeping.c | 168 static inline void tk_update_sleep_time(struct timekeeper *tk, ktime_t delta) in tk_update_sleep_time() 836 ktime_t ktime_get(void) in ktime_get() 840 ktime_t base; in ktime_get() 873 static ktime_t *offsets[TK_OFFS_MAX] = { 879 ktime_t ktime_get_with_offset(enum tk_offsets offs) in ktime_get_with_offset() 883 ktime_t base, *offset = offsets[offs]; in ktime_get_with_offset() 900 ktime_t ktime_get_coarse_with_offset(enum tk_offsets offs) in ktime_get_coarse_with_offset() 904 ktime_t base, *offset = offsets[offs]; in ktime_get_coarse_with_offset() 925 ktime_t ktime_mono_to_any(ktime_t tmono, enum tk_offsets offs) in ktime_mono_to_any() 927 ktime_t *offset = offsets[offs]; in ktime_mono_to_any() [all …]
|
D | posix-timers.c | 137 static ktime_t posix_get_realtime_ktime(clockid_t which_clock) in posix_get_realtime_ktime() 161 static ktime_t posix_get_monotonic_ktime(clockid_t which_clock) in posix_get_monotonic_ktime() 200 static ktime_t posix_get_boottime_ktime(const clockid_t which_clock) in posix_get_boottime_ktime() 211 static ktime_t posix_get_tai_ktime(clockid_t which_clock) in posix_get_tai_ktime() 332 ktime_t now = hrtimer_cb_get_time(timer); in posix_timer_fn() 360 ktime_t kj = TICK_NSEC; in posix_timer_fn() 611 static ktime_t common_hrtimer_remaining(struct k_itimer *timr, ktime_t now) in common_hrtimer_remaining() 618 static s64 common_hrtimer_forward(struct k_itimer *timr, ktime_t now) in common_hrtimer_forward() 640 ktime_t now, remaining, iv; in common_timer_get() 783 static void common_hrtimer_arm(struct k_itimer *timr, ktime_t expires, in common_hrtimer_arm() [all …]
|
D | tick-broadcast.c | 416 ktime_t next = ktime_add_ns(dev->next_event, TICK_NSEC); in tick_handle_periodic_broadcast() 652 ktime_t expires) in tick_broadcast_set_event() 693 ktime_t now, next_event; in tick_handle_oneshot_broadcast() 802 ktime_t now; in ___tick_broadcast_oneshot_control() 993 ktime_t expires) in tick_broadcast_init_next_event() 1005 static inline ktime_t tick_get_next_period(void) in tick_get_next_period() 1007 ktime_t next; in tick_get_next_period() 1028 ktime_t nexttick = 0; in tick_broadcast_setup_oneshot()
|
D | tick-common.c | 35 ktime_t tick_next_period; 112 ktime_t next = dev->next_event; in tick_handle_periodic() 167 ktime_t next; in tick_setup_periodic() 192 ktime_t next_event = 0; in tick_setup_device()
|
D | tick-oneshot.c | 23 int tick_program_event(ktime_t expires, int force) in tick_program_event() 63 ktime_t next_event) in tick_setup_oneshot()
|
D | posix-stubs.c | 99 ktime_t texp; in SYSCALL_DEFINE4() 182 ktime_t texp; in SYSCALL_DEFINE4()
|
D | namespace.c | 23 ktime_t do_timens_ktime_to_host(clockid_t clockid, ktime_t tim, in do_timens_ktime_to_host() 26 ktime_t offset; in do_timens_ktime_to_host()
|
D | ntp_internal.h | 9 extern ktime_t ntp_get_next_leap(void);
|
D | tick-broadcast-hrtimer.c | 43 static int bc_set_next(ktime_t expires, struct clock_event_device *bc) in bc_set_next()
|
/kernel/ |
D | torture.c | 90 int torture_hrtimeout_ns(ktime_t baset_ns, u32 fuzzt_ns, const enum hrtimer_mode mode, in torture_hrtimeout_ns() 93 ktime_t hto = baset_ns; in torture_hrtimeout_ns() 108 ktime_t baset_ns = baset_us * NSEC_PER_USEC; in torture_hrtimeout_us() 120 ktime_t baset_ns = baset_ms * NSEC_PER_MSEC; in torture_hrtimeout_ms() 138 ktime_t baset_ns = jiffies_to_nsecs(baset_j); in torture_hrtimeout_jiffies() 150 ktime_t baset_ns = baset_s * NSEC_PER_SEC; in torture_hrtimeout_s() 611 static ktime_t shutdown_time; /* time to system shutdown. */ 634 ktime_t ktime_snap; in torture_shutdown() 724 static ktime_t stutter_till_abs_time; 735 ktime_t till_ns; in stutter_wait() [all …]
|
D | async.c | 81 static long long microseconds_since(ktime_t start) in microseconds_since() 83 ktime_t now = ktime_get(); in microseconds_since() 120 ktime_t calltime; in async_run_entry_fn() 310 ktime_t starttime; in async_synchronize_cookie_domain()
|
D | watchdog_perf.c | 30 static DEFINE_PER_CPU(ktime_t, last_timestamp); 32 static ktime_t watchdog_hrtimer_sample_threshold __read_mostly; 62 ktime_t delta, now = ktime_get_mono_fast_ns(); in watchdog_check_timestamp()
|
/kernel/futex/ |
D | futex.h | 123 futex_setup_timer(ktime_t *time, struct hrtimer_sleeper *timeout, 260 val, ktime_t *abs_time, u32 bitset, u32 __user 268 ktime_t *abs_time, u32 bitset); 292 extern int futex_lock_pi(u32 __user *uaddr, unsigned int flags, ktime_t *time, int trylock);
|
D | syscalls.c | 86 long do_futex(u32 __user *uaddr, int op, u32 val, ktime_t *timeout, in do_futex() 153 futex_init_timeout(u32 cmd, u32 op, struct timespec64 *ts, ktime_t *t) in futex_init_timeout() 171 ktime_t t, *tp = NULL; in SYSCALL_DEFINE6() 255 ktime_t time; in SYSCALL_DEFINE5() 366 ktime_t t, *tp = NULL; in SYSCALL_DEFINE6()
|
/kernel/power/ |
D | wakeup_reason.c | 66 static ktime_t last_monotime; /* monotonic time before last suspend */ 67 static ktime_t curr_monotime; /* monotonic time after last suspend */ 68 static ktime_t last_stime; /* monotonic boottime offset before last suspend */ 69 static ktime_t curr_stime; /* monotonic boottime offset after last suspend */
|
D | power.h | 182 extern void swsusp_show_speed(ktime_t, ktime_t, unsigned int, char *);
|
D | swap.c | 548 ktime_t start; in save_image() 549 ktime_t stop; in save_image() 685 ktime_t start; in save_image_lzo() 686 ktime_t stop; in save_image_lzo() 1063 ktime_t start; in load_image() 1064 ktime_t stop; in load_image() 1171 ktime_t start; in load_image_lzo() 1172 ktime_t stop; in load_image_lzo()
|
/kernel/dma/ |
D | map_benchmark.c | 49 ktime_t map_stime, map_etime, unmap_stime, unmap_etime; in map_benchmark_thread() 50 ktime_t map_delta, unmap_delta; in map_benchmark_thread()
|