gettime
t0 = gettime();
t1 = gettime();
struct efi_gettime gettime;
if (copy_from_user(&gettime, gettime_user, sizeof(gettime)))
status = efi.get_time(gettime.time ? &efi_time : NULL,
gettime.capabilities ? &cap : NULL);
if (put_user(status, gettime.status))
if (gettime.capabilities) {
cap_local = (efi_time_cap_t *)gettime.capabilities;
if (gettime.time) {
if (copy_to_user(gettime.time, &efi_time, sizeof(efi_time_t)))
if (iep->ops && iep->ops->gettime)
return iep->ops->gettime(iep->clockops_data, sts);
u64 (*gettime)(void *clockops_data, struct ptp_system_timestamp *sts);
.gettime = prueth_iep_gettime,
static struct pid *pid_for_clock(const clockid_t clock, bool gettime)
if (gettime && (pid == task_pid(current)))
e->val.timestamp = gettime();
rec->timestamp = gettime();
__u64 ref_tstamp = gettime(clock_id);
__u64 ref_tstamp = gettime(clock_id);
deadline = gettime(clock_id) +
if (gettime(clock_id) >= deadline)
int gettime = 0;
gettime = 1;
if (gettime) {