Lines Matching refs:tsc
60 #define TSC_CONVERT_AND_ADD(tsc, hrt, scale) do { \ argument
61 uint32_t *_l = (uint32_t *)&(tsc); \
75 hrtime_t tsc, hrt, tsc_last; in __cp_gethrtime() local
97 tsc = __cp_tsc_read(cp); in __cp_gethrtime()
100 if (tsc >= tsc_last) { in __cp_gethrtime()
101 tsc -= tsc_last; in __cp_gethrtime()
102 } else if (tsc >= tsc_last - (2 * cp->cp_tsc_max_delta)) { in __cp_gethrtime()
103 tsc = 0; in __cp_gethrtime()
104 } else if (tsc > cp->cp_tsc_resume_cap) { in __cp_gethrtime()
105 tsc = cp->cp_tsc_resume_cap; in __cp_gethrtime()
107 TSC_CONVERT_AND_ADD(tsc, hrt, cp->cp_nsec_scale); in __cp_gethrtime()