From mboxrd@z Thu Jan 1 00:00:00 1970 From: dhylands@gmail.com (Dave Hylands) Date: Wed, 11 May 2011 12:13:21 -0700 Subject: trouble locating code that increments jiffies (arm) In-Reply-To: References: Message-ID: To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org Hi Chris, On Wed, May 11, 2011 at 6:22 AM, wrote: > ?Hi list, > > ?I've been looking for the code that increments the jiffies variable as > ?well as the code that connects a timer interrupt to the function that > ?increments the variable. I'm working with the ARM architecture in case > ?that makes a difference. I was also wondering, how many jiffies are > ?there? Right now I'm finding that if I disable the local timer for the > ?boot CPU (during boot) the jiffies variable stop incrementing. I always > ?assumed the global timer was supposed to increment a single jiffies > ?variable. I'm working with an old, modified, version of QEMU so I'm > ?leaning towards a QEMU bug for this problem. It's updated here: The machine description has a .timer entry, which points to a timer initialization function. We use clock events, so it gets tied in through there. Sorry for being vague - I'm only mildly familiar with that particular code. There is some documentation and background over here: -- Dave Hylands Shuswap, BC, Canada http://www.davehylands.com