Lines Matching +full:2 +full:hz
24 * Note that 19 * 226 == 4294 ==~ 2^32 / 10^6, so
25 * loops = (4294 * usecs * loops_per_jiffy * HZ) / 2^32.
27 * The mul instruction gives us loops = (a * b) / 2^32.
28 * We choose a = usecs * 19 * HZ and b = loops_per_jiffy * 226
29 * because this lets us support a wide range of HZ and
30 * loops_per_jiffy values without either a or b overflowing 2^32.
31 * Thus we need usecs * HZ <= (2^32 - 1) / 19 = 226050910 and
32 * loops_per_jiffy <= (2^32 - 1) / 226 = 19004280
33 * (which corresponds to ~3800 bogomips at HZ = 100).
36 #define __MAX_UDELAY (226050910UL/HZ) /* maximum udelay argument */
37 #define __MAX_NDELAY (4294967295UL/HZ) /* maximum ndelay argument */
50 __asm__("mulxuu %0,%1,%2" : "=r" (loops) : in __udelay()
65 __udelay((n) * (19 * HZ)); \
67 __udelay((n) * (19 * HZ)); \
77 __udelay((n) * HZ); \
79 __udelay((n) * HZ); \