Re: why INITIAL_JIFFIES is -300 * HZ?

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

 



On Tue, Apr 20, 2010 at 12:39, Nagaprabhanjan Bellari
<nagp.knb@xxxxxxxxx> wrote:
> I am curious to know why jiffies is initialized with INITIAL_JIFFIES which
> is -300 * HZ? It is mentioned in the source that jiffies, when initialized
> with this value, will make it overflow in 5 minutes.

Just wanna add something and maybe you already realize it: since it
uses negative value while jiffies will be read as unsigned integer, it
will be read as "very big" positive number. Thus, it will reach the
upper limit of integer very quickly

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

--
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