From: Jeremy Fitzhardinge <jeremy@goop.org>
To: tglx@linutronix.de
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: question about periodic clocks
Date: Sat, 10 Mar 2007 07:50:38 -0800 [thread overview]
Message-ID: <45F2D3CE.1060008@goop.org> (raw)
In-Reply-To: <1173516061.24738.1148.camel@localhost.localdomain>
Thomas Gleixner wrote:
> Good point. I never thought about that and we set the period in the
> clock event device itself. You are right, the clockevents layer should
> hand over the period either with the set_mode call or seperately.
> Probably with the set_mode call, as it is needed exactly there and we
> don't want to have a "if (dev->mode == XXX)" check in set_next_event().
>
> I look into this.
>
>
So, in the meantime, the period is 1/HZ?
I also have a question about clockevent cpumasks. I was using the lapic
clockevent as a model, but as I understand it there's a lapic per CPU,
which explains why it registers a clockevent per cpu with that cpu alone
in the cpumask.
The Xen timer is a bit different; I guess more like hpet. There's a
single (virtual-)machine-wide timer, which is "owned" by the last cpu
with programmed it; ie, that cpu is the one which gets the resulting
event interrupt. Does this mean I should register a single clockevent
device with a cpumask of CPU_MASK_ALL? Or should I constrain it to a
single cpu?
There's a comment in hpet.c saying
* Start hpet with the boot cpu mask and make it
* global after the IO_APIC has been initialized.
but I don't see any place where the hpet cpumask is updated.
Thanks,
J
next prev parent reply other threads:[~2007-03-10 15:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-09 23:26 question about periodic clocks Jeremy Fitzhardinge
2007-03-10 8:41 ` Thomas Gleixner
2007-03-10 15:50 ` Jeremy Fitzhardinge [this message]
2007-03-10 16:24 ` Thomas Gleixner
2007-03-10 16:37 ` Jeremy Fitzhardinge
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=45F2D3CE.1060008@goop.org \
--to=jeremy@goop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tglx@linutronix.de \
/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