Re: timer irqs when no preemption

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

 



2007/2/5, Rajat Jain <rajat.noida.india@xxxxxxxxx>:
> > Another question - the irqs are disabled at times (like when a
> > spinlock is held). Does this cause any lost timer ticks?
> >
>
> I guess so.
>

Won't this mean a wrong value of "jiffies"?



Yes. I guess so. But I think this does not matter. The frequency of
losing timer interrupt is too low to affect the function of jiffies as
a counter. The system time is obtained from xtime (rahter than
jiffies), which is updated according to a free-source timer at each
tick, not simply added with a fixed value.

I make the above conclusion based on my own understanding. Maybe
someone more familiar with this can give more confident answer. :-)


Regards,

Rajat


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           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