Lines Matching refs:USER_HZ
63 /* TICK_USEC is the time between ticks in usec assuming fake USER_HZ */
64 #define TICK_USEC ((1000000UL + USER_HZ/2) / USER_HZ)
68 #define TICK_USEC_TO_NSEC(TUSEC) (SH_DIV (TUSEC * USER_HZ * 1000, ACTHZ, 8))
385 #if (TICK_NSEC % (NSEC_PER_SEC / USER_HZ)) == 0
386 return x / (HZ / USER_HZ);
389 do_div(tmp, (NSEC_PER_SEC / USER_HZ));
396 #if (HZ % USER_HZ)==0
397 if (x >= ~0UL / (HZ / USER_HZ))
399 return x * (HZ / USER_HZ);
404 if (x >= ~0UL / HZ * USER_HZ)
409 do_div(jif, USER_HZ);
416 #if (TICK_NSEC % (NSEC_PER_SEC / USER_HZ)) == 0
417 do_div(x, HZ / USER_HZ);
425 do_div(x, (NSEC_PER_SEC / USER_HZ));
432 #if (NSEC_PER_SEC % USER_HZ) == 0
433 do_div(x, (NSEC_PER_SEC / USER_HZ));
434 #elif (USER_HZ % 512) == 0
435 x *= USER_HZ/512;
439 * max relative error 5.7e-8 (1.8s per year) for USER_HZ <= 1024,
444 do_div(x, (unsigned long)((9ull * NSEC_PER_SEC + (USER_HZ/2))
445 / USER_HZ));