9 __weak_alias(clock_getres
, __clock_getres50
);
12 int clock_getres(clockid_t clock_id
, struct timespec
*res
)
16 memset(&m
, 0, sizeof(m
));
17 m
.m_lc_pm_time
.clk_id
= clock_id
;
19 if (_syscall(PM_PROC_NR
, PM_CLOCK_GETRES
, &m
) < 0)
22 res
->tv_sec
= m
.m_pm_lc_time
.sec
;
23 res
->tv_nsec
= m
.m_pm_lc_time
.nsec
;