On Sun, Sep 5, 2010 at 9:25 AM, Tapas Mishra <mightydre...@gmail.com> wrote:
>
> loopbit = loops_per_jiffy;
> /* Gradually work on the lower-order bits */
> while (lps_precision-- && (loopbit >>= 1)) {
> loops_per_jiffy |= loopbit;

How is loops_per_jiffy |= loopbit;
OR operation above and
> ticks = jiffies;
> while (ticks == jiffies); /* Wait until the start
> of the next jiffy */
> ticks = jiffies;
> /* Delay */
> __delay(loops_per_jiffy);
>
> if (jiffies != ticks)
> /* longer than 1 tick */
> loops_per_jiffy &= ~loopbit;
AND with Inverse
loops_per_jiffy &= ~loopbit;
help to achieve the desired result.
> }
>
>


-- 
Tapas

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecar...@nl.linux.org
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to