Searched refs:divisors2 (Results 1 - 1 of 1) sorted by relevance

/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/arch/sh/kernel/cpu/sh4a/
H A Dclock-sh7722.c138 * I created the divisors2 array, which is used to calculate rate like
139 * rate = parent * 2 / divisors2[ divisor ];
141 static int divisors2[] = { 2, 3, 4, 5, 6, 8, 10, 12, 16, 20, 24, 32, 40 }; variable
248 for (index = 1; index < ARRAY_SIZE(divisors2); index++) {
249 if (div2 > divisors2[index] && div2 <= divisors2[index])
252 if (index >= ARRAY_SIZE(divisors2))
253 index = ARRAY_SIZE(divisors2) - 1;
254 return divisors2[index];
264 clk->rate = clk->parent->rate * 2 / divisors2[inde
[all...]

Completed in 84 milliseconds