All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Xiaogeng (Shawn) Jin" <xjin@redswitch.com>
To: linuxppc-embedded@lists.linuxppc.org
Subject: usage of disarm_decr[]
Date: Wed, 11 Dec 2002 13:13:05 -0800	[thread overview]
Message-ID: <3DF7AA61.9020205@redswitch.com> (raw)


disarm_decr[] is defined as an unsigned long array but never get
initialized in arch/ppc/kernel/time.c.

What's the purpose of using disarm_decr? I read the timer_interrupt()
code and found the only place where it's referenced.

int timer_interrupt(struct pt_regs * regs)
{
...
	if ( !disarm_decr[smp_processor_id()] )
		set_dec(next_dec);
	last_jiffy_stamp(cpu) = jiffy_stamp;
...
}

So in this case, the value of disarm_decr[] is always zero, right? Then
the decrementer get set each time when the timer interrupt is invoked.

--
Shawn Jin
RedSwitch Inc.


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

             reply	other threads:[~2002-12-11 21:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-11 21:13 Xiaogeng (Shawn) Jin [this message]
2002-12-11 21:29 ` usage of disarm_decr[] Paul Mackerras
2002-12-11 22:31   ` Xiaogeng (Shawn) Jin

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=3DF7AA61.9020205@redswitch.com \
    --to=xjin@redswitch.com \
    --cc=linuxppc-embedded@lists.linuxppc.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.