public inbox for linux-smp@vger.kernel.org
 help / color / mirror / Atom feed
From: Klaas Zweck <khz@tzi.org>
To: linux-smp <linux-smp@vger.kernel.org>
Subject: question about local-apic timer
Date: Sat, 13 Apr 2002 17:42:40 +0200	[thread overview]
Message-ID: <3CB851F0.5090907@tzi.org> (raw)

hi all,

i have a question about disabling the local-apic timer interrupt
on certain (but not all) cpus in linux MP-Systems to prevent the cpus
from entering kernel mode.
as i understood, the timer is a self generated irq by the local apic of 
a cpu
and is then received by this cpu itself.
i found it used in smp_local_timer_interrupt() function to
update process times.
i think it is initialized in arch/../apic.c in:hi all,

lvtt1_value = SET_APIC_TIMER_BASE(APIC_TIMER_BASE_DIV) |
                       APIC_LVT_TIMER_PERIODIC | LOCAL_TIMER_VECTOR;
apic_write_around(APIC_LVTT, lvtt1_value);


the APIC_LVT_TIMER_PERIODIC means ( as i understood intel mp spec )
that it is emitted at a certain frequency and is set to one as default 
value in linux.
the mp spec says that a zero value would mean to set the local-timer 
'one shot mode'
to be emitted only once (since reprogrammed).

so would it be sufficient for my problem ( to disable local timer irqs 
on some cpus)
to set this value to zero ??

and if so, is this possible at system runtime ??

since it is used to update process times this would produce problems in 
getting correct
values for this on cpus with local-timer disabled but if thats the only 
problem
coming up , this would be ok to me. (system is just for testing purposes.)

so thanks a lot for ideas and comments,
klaas





                 reply	other threads:[~2002-04-13 15:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=3CB851F0.5090907@tzi.org \
    --to=khz@tzi.org \
    --cc=linux-smp@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