CLOCK_REALTIME
ktime_get_snapshot_id(CLOCK_REALTIME, &systime_snapshot);
hrtimer_setup(&vcpu->arch.dec_timer, kvmppc_decrementer_wakeup, CLOCK_REALTIME,
uml_rtc_irq_fds[0] = timerfd_create(CLOCK_REALTIME, TFD_CLOEXEC);
clock_gettime(CLOCK_REALTIME, &realtime_tp);
case CLOCK_REALTIME: ktime_get_real_ts64(&ts); break;
ct2.clk_id = CLOCK_REALTIME;
case CLOCK_REALTIME:
[CLOCK_REALTIME] = "realtime",
case CLOCK_REALTIME:
case CLOCK_REALTIME:
case CLOCK_REALTIME:
case CLOCK_REALTIME:
CLOCK_REALTIME, HRTIMER_MODE_REL);
CLOCK_REALTIME, HRTIMER_MODE_REL);
ktime_t now = current_time_ns(CLOCK_REALTIME);
isl->save_data.timestamp = ktime_to_ms(current_time_ns(CLOCK_REALTIME));
stats->current_time = ktime_to_seconds(current_time_ns(CLOCK_REALTIME));
return current_time_ns(CLOCK_REALTIME) / NSEC_PER_USEC;
uvc_clock_param = CLOCK_REALTIME;
clock = CLOCK_REALTIME;
hrtimer_setup(&fep->perout_timer, fec_ptp_pps_perout_handler, CLOCK_REALTIME,
if (xtstamp->clock_id != CLOCK_REALTIME)
iwl_mvm_get_sync_time(mvm, CLOCK_REALTIME, &tmp_gp2, NULL,
if (xtstamp->clock_id != CLOCK_REALTIME)
else if (clock_type == CLOCK_REALTIME && realtime)
hrtimer_setup(&tio->timer, hrtimer_callback, CLOCK_REALTIME,
struct system_device_crosststamp xtstamp = { .clock_id = CLOCK_REALTIME };
case CLOCK_REALTIME:
ktime_get_snapshot_id(CLOCK_REALTIME, &systime_snapshot);
if ((ctx->clockid == CLOCK_REALTIME ||
clockid != CLOCK_REALTIME &&
ktime_get_snapshot_id(CLOCK_REALTIME, &snap);
case CLOCK_REALTIME:
{ CLOCK_REALTIME, "CLOCK_REALTIME" }, \
#define CLOCKS_MASK (CLOCK_REALTIME | CLOCK_MONOTONIC)
#define VDSO_HRES (BIT(CLOCK_REALTIME) | \
return CLOCK_REALTIME;
HRTIMER_MODE_ABS, CLOCK_REALTIME);
clockid != CLOCK_REALTIME &&
case CLOCK_REALTIME:
(flags & FLAGS_CLOCKRT) ? CLOCK_REALTIME : CLOCK_MONOTONIC,
if (clockid == CLOCK_REALTIME) {
if (clockid != CLOCK_REALTIME && clockid != CLOCK_MONOTONIC)
alarm_bases[ALARM_REALTIME].base_clockid = CLOCK_REALTIME;
BASE_INIT(HRTIMER_BASE_REALTIME, CLOCK_REALTIME),
BASE_INIT(HRTIMER_BASE_REALTIME_SOFT, CLOCK_REALTIME),
case CLOCK_REALTIME:
case CLOCK_REALTIME:
if (clock_id == CLOCK_REALTIME && mode & HRTIMER_MODE_REL)
hrtimer_setup(&sync_hrtimer, sync_timer_callback, CLOCK_REALTIME, HRTIMER_MODE_ABS);
case CLOCK_REALTIME:
if (which_clock != CLOCK_REALTIME)
case CLOCK_REALTIME:
case CLOCK_REALTIME:
if (which_clock != CLOCK_REALTIME)
case CLOCK_REALTIME:
case CLOCK_REALTIME:
[CLOCK_REALTIME] = &clock_realtime,
if (timr->it_clock == CLOCK_REALTIME)
case CLOCK_REALTIME:
case CLOCK_REALTIME:
case CLOCK_REALTIME:
vdso_ts = &vc[CS_HRES_COARSE].basetime[CLOCK_REALTIME];
if (!do_hres(vd, &vc[CS_HRES_COARSE], CLOCK_REALTIME, &ts))
t = READ_ONCE(vc[CS_HRES_COARSE].basetime[CLOCK_REALTIME].sec);
case CLOCK_REALTIME:
case CLOCK_REALTIME:
case CLOCK_REALTIME:
case CLOCK_REALTIME:
case CLOCK_REALTIME:
struct system_device_crosststamp xtstamp = { .clock_id = CLOCK_REALTIME };
if (clock_gettime(CLOCK_REALTIME, &real_time_ts) ||
ret = _sys_clock_gettime(CLOCK_REALTIME, &tp);
return __sysret(_sys_clock_nanosleep(CLOCK_REALTIME, 0, rqtp, rmtp));
clock_gettime(CLOCK_REALTIME, &start);
clock_gettime(CLOCK_REALTIME, &end);
clock_gettime(CLOCK_REALTIME, &tm);
CLOCKID_MAP("realtime", CLOCK_REALTIME),
CLOCKID_MAP("real", CLOCK_REALTIME),
if (clock_gettime(CLOCK_REALTIME, &time) == -1) {
clock_gettime(CLOCK_REALTIME, &start_time);
clock_gettime(CLOCK_REALTIME, &dbg_time);
clock_gettime(CLOCK_REALTIME, &end_time);
clock_gettime(CLOCK_REALTIME, &dbg_time);
clock_gettime(CLOCK_REALTIME, &start_time);
clock_gettime(CLOCK_REALTIME, &end_time);
clock_gettime(CLOCK_REALTIME, &start);
clock_gettime(CLOCK_REALTIME, &end);
clock_gettime(CLOCK_REALTIME, &time_start[cpu]);
clock_gettime(CLOCK_REALTIME, &time_end[cpu]);
if (timer_create(CLOCK_REALTIME, &sev, &timerid) == -1) {
err = clock_gettime(CLOCK_REALTIME, &real_time_ts);
ret = clock_gettime(CLOCK_REALTIME, &usr_ts);
ret = clock_gettime(CLOCK_REALTIME, &now_ts);
now = gettime_ns(CLOCK_REALTIME);
clock_gettime(CLOCK_REALTIME, &timeout);
clock_gettime(CLOCK_REALTIME, &ts);
clock_gettime(CLOCK_REALTIME, &timeout);
if (futex_get_abs_timeout(CLOCK_REALTIME, &to, timeout_ns))
if (futex_get_abs_timeout(CLOCK_REALTIME, &to, timeout_ns))
if (futex_get_abs_timeout(CLOCK_REALTIME, &to, timeout_ns))
res = futex_waitv(&waitv, 1, 0, &to, CLOCK_REALTIME);
if (futex_get_abs_timeout(CLOCK_REALTIME, &to, timeout_ns))
clock_gettime(CLOCK_REALTIME, &time_to_wait);
clock_gettime(CLOCK_REALTIME, &time_to_wait);
TEST_ASSERT(!clock_gettime(CLOCK_REALTIME, &ts),
TEST_ASSERT(!clock_gettime(CLOCK_REALTIME, &ts),
r = clock_gettime(CLOCK_REALTIME, &ts);
if (clock_gettime(CLOCK_REALTIME, &time_start_real))
if (clock_gettime(CLOCK_REALTIME, &ts_usr))
CASE_TEST(clock_nanosleep); ts.tv_nsec = -1; EXPECT_EQ(1, EINVAL, clock_nanosleep(CLOCK_REALTIME, 0, &ts, NULL)); break;
clockid_t ext_clockid = CLOCK_REALTIME;
ext_clockid = CLOCK_REALTIME;
clock_gettime(CLOCK_REALTIME, &ts);
if (clock_settime(CLOCK_REALTIME, &ts)) {
case CLOCK_REALTIME:
case CLOCK_REALTIME:
if (clock_gettime(CLOCK_REALTIME, &ts))
if (clockid == CLOCK_REALTIME)
ret |= run_test(CLOCK_REALTIME);
case CLOCK_REALTIME:
case CLOCK_REALTIME:
int userclock = CLOCK_REALTIME;
case CLOCK_REALTIME:
clock_gettime(CLOCK_REALTIME, &now);
clock_nanosleep(CLOCK_REALTIME, TIMER_ABSTIME, &target, NULL);
clock_gettime(CLOCK_REALTIME, &now);
clock_gettime(CLOCK_REALTIME, &ts);
if (timer_create(CLOCK_REALTIME, &se, &tm1) == -1) {
while (clock_nanosleep(CLOCK_REALTIME, TIMER_ABSTIME, &ts, NULL))
clock_gettime(CLOCK_REALTIME, &ts);
clock_gettime(CLOCK_REALTIME, &now);
for (clockid = CLOCK_REALTIME; clockid < max_clocks; clockid++) {
case CLOCK_REALTIME:
ksft_set_plan(max_clocks - CLOCK_REALTIME - SKIPPED_CLOCK_COUNT);
for (clockid = CLOCK_REALTIME; clockid < max_clocks; clockid++) {
case CLOCK_REALTIME:
int clock_id = CLOCK_REALTIME;
int clock_id = CLOCK_REALTIME;
case CLOCK_REALTIME:
ret = clock_adjtime(CLOCK_REALTIME, &tmx);
ret = clock_adjtime(CLOCK_REALTIME, &tmx);
vdso_test_clock(CLOCK_REALTIME);
[CLOCK_REALTIME] = "CLOCK_REALTIME",
if (clock_gettime(CLOCK_REALTIME, &ts))
if (clock_gettime(CLOCK_REALTIME, &ts)) {