Re: fine tuning the precision in calibrate.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Sep 5, 2010 at 9:25 AM, Tapas Mishra <mightydreams@xxxxxxxxx> 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 ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux