public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: liyu <liyu@ccoss.com.cn>
To: LKML <linux-kernel@vger.kernel.org>
Subject: [question] I doublt on timer interrput.
Date: Mon, 07 Nov 2005 14:05:24 +0800	[thread overview]
Message-ID: <436EEEA4.1020703@ccoss.com.cn> (raw)

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~




   


             reply	other threads:[~2005-11-07  6:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-07  6:05 liyu [this message]
2005-11-07 11:53 ` [question] I doublt on timer interrput 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=436EEEA4.1020703@ccoss.com.cn \
    --to=liyu@ccoss.com.cn \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox