From: Andi Kleen <ak@suse.de>
To: john stultz <johnstul@us.ibm.com>
Cc: lkml <linux-kernel@vger.kernel.org>,
Chris McDermott <lcm@us.ibm.com>, Andi Kleen <ak@suse.de>,
vojtech@suse.cz
Subject: Re: [RFC][PATCH] x86_64: Fix collision between pmtimer and pit/hpet timekeeping
Date: Wed, 7 Dec 2005 18:53:38 +0100 [thread overview]
Message-ID: <20051207175338.GB11190@wotan.suse.de> (raw)
In-Reply-To: <1133931639.10613.39.camel@cog.beaverton.ibm.com>
On Tue, Dec 06, 2005 at 09:00:39PM -0800, john stultz wrote:
> Hello,
> I thought I had caught all the problems when the no-legacy HPET support
> landed close to the time that the ACPI PM timer support landed, but
> apparently not. :(
>
> On systems that do not support the HPET legacy functions (basically the
> IBM x460, but there could be others), in time_init() we accidentally
> fall into a PM timer conditional and set the vxtime_hz value to the PM
> timer's frequency. We then use this value with the HPET for timekeeping.
>
> This patch (which mimics the behavior in time_init_gtod) corrects the
> collision.
>
> Andi, any objections or suggestions for a better way?
Ok. I will apply it.
But I never quite got why you fall back to the PIT on these systems
anyways - if LEGSUP is not set it just means that the HPET interrupt
cannot be routed to irq 0, right? It should be quite easy to change
the timer code to accept timer interrupts on other irqs.
You just need to allocate the other interrupt and possibly coordinate
that with the hpet char driver (or rather move the code for that
from there to time.c). I think implementing that would be a better
solution.
-Andi
next prev parent reply other threads:[~2005-12-07 17:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-07 5:00 john stultz
2005-12-07 17:53 ` Andi Kleen [this message]
2005-12-07 18:00 ` john stultz
2005-12-07 18:29 ` Andi Kleen
2005-12-08 9:34 ` Vojtech Pavlik
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=20051207175338.GB11190@wotan.suse.de \
--to=ak@suse.de \
--cc=johnstul@us.ibm.com \
--cc=lcm@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=vojtech@suse.cz \
/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
all inboxes | Powered by JetHome®