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?