public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [question] I doublt on timer interrput.
@ 2005-11-07  6:05 liyu
  2005-11-07 11:53 ` Fawad Lateef
  2005-11-07 16:16 ` Robert Love
  0 siblings, 2 replies; 6+ messages in thread
From: liyu @ 2005-11-07  6:05 UTC (permalink / raw)
  To: LKML

Hi, all:

    I have one question about timer interrupt (i386 architecture).

    As we known, the timer emit HZ times interrputs per second,
and in i386. The interrupt handler will call scheduler_tick()
each time (on i386 at least, both enable or disable APIC).

    On my Celeron machine(IOW, only one CPU, not SMP/SMT), I defined
a global int variable 'tick_count' in kernel/sched.c, and add one line
of code like follow in scheduler_tick():

    ++tick_count;

    but I found it is not same with content of the /proc/interrupts,
and the differennt between them is not little.
   
    I can not understand why that is.
   
    Any useful idea.



-liyu / NOW~




   


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-11-08  3:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-07  6:05 [question] I doublt on timer interrput liyu
2005-11-07 11:53 ` Fawad Lateef
2005-11-08  1:33   ` liyu
2005-11-08  2:53     ` Fawad Lateef
2005-11-08  3:05       ` liyu
2005-11-07 16:16 ` Robert Love

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox