From: john stultz <johnstul@us.ibm.com>
To: Peter Keilty <peter.keilty@hp.com>
Cc: linux-ia64@vger.kernel.org, Eric Whitney <eric.whitney@hp.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/3] ia64: convert to use clocksource code
Date: Thu, 26 Apr 2007 14:18:21 -0700 [thread overview]
Message-ID: <1177622301.6031.16.camel@localhost.localdomain> (raw)
In-Reply-To: <20070426202632.23343.54944.sendpatchset@rambler.zko.hp.com>
On Thu, 2007-04-26 at 16:26 -0400, Peter Keilty wrote:
> From: Peter Keilty <peter.keilty@hp.com>
>
> Initial ia64 conversion to the generic timekeeping/clocksource code.
>
> Signed-off-by: Peter Keilty <peter.keilty@hp.com>
> Signed-off-by: John Stultz <johnstul@us.ibm.com>
Peter,
Thanks so much for pushing this on! I suspect this patch needs to be
updated a touch, as I'm not sure if it still compiles in light of recent
changes...
> diff --git a/arch/ia64/kernel/cyclone.c b/arch/ia64/kernel/cyclone.c
> index e00b215..280383b 100644
> --- a/arch/ia64/kernel/cyclone.c
> +++ b/arch/ia64/kernel/cyclone.c
> @@ -3,6 +3,7 @@ #include <linux/smp.h>
> #include <linux/time.h>
> #include <linux/errno.h>
> #include <linux/timex.h>
> +#include <linux/clocksource.h>
> #include <asm/io.h>
>
> /* IBM Summit (EXA) Cyclone counter code*/
> @@ -18,13 +19,21 @@ void __init cyclone_setup(void)
> use_cyclone = 1;
> }
>
> +static void __iomem *cyclone_mc_ptr;
>
> -struct time_interpolator cyclone_interpolator = {
> - .source = TIME_SOURCE_MMIO64,
> - .shift = 16,
> - .frequency = CYCLONE_TIMER_FREQ,
> - .drift = -100,
> - .mask = (1LL << 40) - 1
> +static cycle_t read_cyclone(void)
> +{
> + return (cycle_t)readq((void __iomem *)cyclone_mc_ptr);
> +}
> +
> +static struct clocksource clocksource_cyclone = {
> + .name = "cyclone",
> + .rating = 300,
> + .read = read_cyclone,
> + .mask = (1LL << 40) - 1,
Daniel Walker pointed out to me on IRC that CLOCKSOURCE_MASK() should
probably be used here.
> + .mult = 0, /*to be caluclated*/
> + .shift = 16,
> + .is_continuous = 1,
.is_continuous no longer exists.
You want to use:
.flags = CLOCK_SOURCE_IS_CONTINUOUS
This holds for all the clocksources introduced.
thanks
-john
next prev parent reply other threads:[~2007-04-26 21:18 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-26 20:26 [PATCH 1/3] ia64: convert to use clocksource code Peter Keilty
2007-04-26 20:27 ` [PATCH 2/3] ia64: remove interpolater code Peter Keilty
2007-04-26 20:52 ` john stultz
2007-04-26 21:47 ` David Miller
2007-04-26 20:27 ` [PATCH 3/3] ia64: update fsyscall for performance, enable build/run on 2.6.21-rc1 Peter Keilty
2007-04-26 20:41 ` [PATCH 1/3] ia64: convert to use clocksource code Sam Ravnborg
2007-04-26 20:48 ` john stultz
2007-04-26 21:07 ` Daniel Walker
2007-04-27 14:38 ` Peter Keilty
2007-04-27 15:35 ` Daniel Walker
2007-04-27 15:42 ` Peter Keilty
2007-04-27 15:48 ` Daniel Walker
2007-04-27 16:11 ` Peter Keilty
2007-04-27 16:32 ` Daniel Walker
2007-05-02 17:58 ` john stultz
2007-05-02 19:08 ` Daniel Walker
2007-04-26 21:18 ` john stultz [this message]
2007-04-27 12:54 ` Peter Keilty
2007-05-02 17:50 ` john stultz
2007-04-27 1:02 ` Chris Wright
2007-04-27 13:35 ` Peter Keilty
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=1177622301.6031.16.camel@localhost.localdomain \
--to=johnstul@us.ibm.com \
--cc=eric.whitney@hp.com \
--cc=linux-ia64@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=peter.keilty@hp.com \
/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