Lines Matching refs:curr_tm

1297     struct timespec curr_tm;  in cmd_target()  local
1306 if (clock_gettime(CLOCK_MONOTONIC_COARSE, &curr_tm) != 0) { in cmd_target()
1311 if (get_time_diff_ms(&last_req_tm, &curr_tm) < in cmd_target()
1317 last_req_tm = curr_tm; in cmd_target()
1977 struct timespec curr_tm; in stop_wait_for_proc_kill() local
1979 if (clock_gettime(CLOCK_MONOTONIC_COARSE, &curr_tm) != 0) { in stop_wait_for_proc_kill()
1989 get_time_diff_ms(&last_kill_tm, &curr_tm)); in stop_wait_for_proc_kill()
1992 get_time_diff_ms(&last_kill_tm, &curr_tm)); in stop_wait_for_proc_kill()
2316 struct timespec curr_tm; in mp_event_psi() local
2329 if (clock_gettime(CLOCK_MONOTONIC_COARSE, &curr_tm) != 0) { in mp_event_psi()
2334 record_wakeup_time(&curr_tm, events ? Event : Polling, &wi); in mp_event_psi()
2338 get_time_diff_ms(&last_kill_tm, &curr_tm) < static_cast<long>(kill_timeout_ms))) { in mp_event_psi()
2406 if (watermarks.high_wmark == 0 || get_time_diff_ms(&wmark_update_tm, &curr_tm) > 60000) { in mp_event_psi()
2415 wmark_update_tm = curr_tm; in mp_event_psi()
2492 &wi, &curr_tm); in mp_event_psi()
2539 struct timespec curr_tm; in mp_event_common() local
2584 if (clock_gettime(CLOCK_MONOTONIC_COARSE, &curr_tm) != 0) { in mp_event_common()
2589 record_wakeup_time(&curr_tm, events ? Event : Polling, &wi); in mp_event_common()
2592 get_time_diff_ms(&last_kill_tm, &curr_tm) < static_cast<long>(kill_timeout_ms)) { in mp_event_common()
2711 if (find_and_kill_process(level_oomadj[level], -1, NULL, &mi, &wi, &curr_tm) == 0) { in mp_event_common()
2734 pages_freed = find_and_kill_process(min_score_adj, -1, NULL, &mi, &wi, &curr_tm); in mp_event_common()
2738 if (get_time_diff_ms(&last_report_tm, &curr_tm) < FAIL_REPORT_RLIMIT_MS) { in mp_event_common()
2762 last_report_tm = curr_tm; in mp_event_common()
3072 static void resume_polling(struct polling_params *poll_params, struct timespec curr_tm) { in resume_polling() argument
3073 poll_params->poll_start_tm = curr_tm; in resume_polling()
3079 struct timespec curr_tm; in call_handler() local
3083 clock_gettime(CLOCK_MONOTONIC_COARSE, &curr_tm); in call_handler()
3085 poll_params->last_poll_tm = curr_tm; in call_handler()
3095 poll_params->poll_start_tm = curr_tm; in call_handler()
3103 resume_polling(poll_params, curr_tm); in call_handler()
3106 if (get_time_diff_ms(&poll_params->poll_start_tm, &curr_tm) > PSI_WINDOW_SIZE_MS) { in call_handler()
3118 struct timespec curr_tm; in mainloop() local
3133 clock_gettime(CLOCK_MONOTONIC_COARSE, &curr_tm); in mainloop()
3144 delay = get_time_diff_ms(&poll_params.last_poll_tm, &curr_tm); in mainloop()
3152 clock_gettime(CLOCK_MONOTONIC_COARSE, &curr_tm); in mainloop()
3153 poll_now = (get_time_diff_ms(&poll_params.last_poll_tm, &curr_tm) >= in mainloop()
3161 clock_gettime(CLOCK_MONOTONIC_COARSE, &curr_tm); in mainloop()
3162 delay = kill_timeout_ms - get_time_diff_ms(&last_kill_tm, &curr_tm); in mainloop()
3169 clock_gettime(CLOCK_MONOTONIC_COARSE, &curr_tm); in mainloop()
3170 resume_polling(&poll_params, curr_tm); in mainloop()