jiffies - Where does it get updated in the Kernel ?

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

 



Hello,

I'm in the process of porting a new M68K based CPU arch to Linux
v2.6.20.  I'm currently at the start_kernel() routine stuck in an
infinite loop inside of a call to calibrate_delay().  The kernel is
spinning inside of while( ticks == jiffies ) in the following snippet
from init/calibrate.c:

printk(KERN_DEBUG "Calibrating delay loop... ");
while ((loops_per_jiffy <<= 1) != 0) {
    /* wait for "start of" clock tick */
    ticks = jiffies;
   while (ticks == jiffies)
       /* nothing */;
    /* Go .. */
    ticks = jiffies;
    __delay(loops_per_jiffy);
    ticks = jiffies - ticks;
    if (ticks)
        break;

My problem seems to be that the jiffies variable is not being updated.
 It looks like jiffies is a common value in the kernel and it looks
like it gets updated somewhere.  My question is where do I look in the
kernel to see how the jiffies variable gets updated?

Thanks in advance,
Tony

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