login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
March
»
19
Re: [RFC][PATCH] Convert alpha to use clocksource
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Ivan Kokshaysky
Subject:
Re: [RFC][PATCH] Convert alpha to use clocksource
Date: Friday, March 19, 2010 - 3:07 am
On Thu, Mar 18, 2010 at 03:19:18PM -0700, john stultz wrote:
quoted text
> On Fri, 2010-03-19 at 00:40 +0300, Ivan Kokshaysky wrote: > > Yeah, that looks cool. I'm typing this on the 800MHz UP1500 running > > 2.6.34-rc1 plus your patch, and the timekeeping works fine so far. > > Nice! Thanks for testing! Another benefit that I forgot to mention, is > that NTP adjustments will be made directly against the counter, instead > of being made against the tick. This avoids possible small errors at > tick time if the intertick interval doesn't match the actual tick > length. > > > > Though, even after a glance over the clocksource code, I've not > > gotten yet to how one could estimate the "shift" value... > > Any hints? > > Yea, selecting a good shift is obnoxious. You want to pick the largest > value of shift, so that it can be finely adjusted by ntp, but that > creates large mult values, which can cause overflows for large cycle > intervals. > > A function to solve this was actually recently added, but simply I > forgot to use it. :P
Understood. ;-)
quoted text
> I actually should rework the register function so you just give it a > clocksource and a freq and it sets up both mult and shift for you. > > > > And if I recall correctly, production alphas have been clocked > > in the range of 60-1250 MHz. > > Cool. The shift value I picked should be ok then. But below is an > updated version that uses the self-calculated method.
Excellent. Thanks a lot!
quoted text
> >From 078e91d14cb5e82a3fab00cf74faf45f44336590 Mon Sep 17 00:00:00 2001 > From: John Stultz <johnstul@us.ibm.com> > Date: Wed, 17 Mar 2010 12:43:11 -0700 > Subject: [PATCH] Convert alpha to use clocksources instead of arch_gettimeoffset > > Alpha has a tsc like rpcc counter that it uses to manage time. > This can be converted to an actual clocksource instead of utilizing > the arch_gettimeoffset method that is really only there for legacy > systems with no continuous counter. > > Further cleanups could be made if alpha converted to the clockevent model. > > I've not tested or compiled this code. Any help from the maintainers would > be greatly appreciated > > CC: Thomas Gleixner <tglx@linutronix.de> > CC: Richard Henderson <rth@twiddle.net> > CC: Ivan Kokshaysky <ink@jurassic.park.msu.ru> > CC: Matt Turner <mattst88@gmail.com> > Signed-off-by: John Stultz <johnstul@us.ibm.com>
Acked-by: Ivan Kokshaysky <ink@jurassic.park.msu.ru> Tested-by: Ivan Kokshaysky <ink@jurassic.park.msu.ru> Ivan. --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[RFC][PATCH] Convert alpha to use clocksource
, John Stultz
, (Wed Mar 17, 7:01 pm)
Re: [RFC][PATCH] Convert alpha to use clocksource
, Richard Henderson
, (Thu Mar 18, 7:32 am)
Re: [RFC][PATCH] Convert alpha to use clocksource
, john stultz
, (Thu Mar 18, 10:55 am)
Re: [RFC][PATCH] Convert alpha to use clocksource
, Ivan Kokshaysky
, (Thu Mar 18, 2:40 pm)
Re: [RFC][PATCH] Convert alpha to use clocksource
, john stultz
, (Thu Mar 18, 3:19 pm)
Re: [RFC][PATCH] Convert alpha to use clocksource
, Ivan Kokshaysky
, (Fri Mar 19, 3:07 am)
Re: [RFC][PATCH] Convert alpha to use clocksource
, Matt Turner
, (Fri Mar 19, 9:47 am)
Re: [RFC][PATCH] Convert alpha to use clocksource
, Richard Henderson
, (Fri Mar 19, 10:13 am)
Re: [RFC][PATCH] Convert alpha to use clocksource
, Johannes Weiner
, (Mon Mar 22, 4:17 am)
Re: [RFC][PATCH] Convert alpha to use clocksource
, Thomas Gleixner
, (Mon Mar 22, 7:22 am)
Re: [RFC][PATCH] Convert alpha to use clocksource
, Johannes Weiner
, (Mon Mar 22, 9:41 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Ingo Molnar
Re: [patch 00/13] Syslets, "Threadlets", generic AIO support, v3
Vivek Goyal
[PATCH] x86_64: Display more intutive error message if kernel is not 2MB aligned
Andi Kleen
[PATCH] [0/35] Some x86 2.6.22 candidate patches for review
Andrew Morton
Re: [PATCH] lazy freeing of memory through MADV_FREE 2/2
Peter Zijlstra
Re: [RFC PATCH 1/2] Marker probes in futex.c
git
:
Felipe Contreras
Re: [kernel.org users] [RFD] On deprecating "git-foo" for builtins
Johannes Schindelin
[PATCH] fetch: refuse to fetch into the current branch in a non-bare repository
Johannes Schindelin
Re: [PATCH] Fix install-doc-quick target
Nicolas Pitre
Re: About git and the use of SHA-1
Alex Riesen
Re: git exclude patterns for directory
git-commits-head
:
Linux Kernel Mailing List
sh: Fix compile error by operands(mov.l) in sh3/entry.S
Linux Kernel Mailing List
New device ID for sc92031 [1088:2031]
Linux Kernel Mailing List
powerpc/kexec: Add support for FSL-BookE
Linux Kernel Mailing List
[ARM] 5388/1: Add hwcap bits for VFPv3 and VFPv3D16
Linux Kernel Mailing List
drivers/acpi: use kasprintf
linux-netdev
:
David Dillow
Re: [PATCH 2.6.30-rc4] r8169: avoid losing MSI interrupts
Andi Kleen
Re: RFC: Nagle latency tuning
Paul E. McKenney
Re: [PATCH 1/3] rcu: Introduce hlist_nulls variant of hlist
Russell King
Re: [BUG] New Kernel Bugs
David Miller
Re: mac80211 truesize bugs
openbsd-misc
:
Andres Salazar
About priorities in /etc/resolv.conf
Rob Shepherd
x86 hardware for router system
Henning Brauer
Re: Sun Blade 1000?
Mitja Muženič
Re: isakmpd -- NCP IPsec client: peer proposed invalid phase 2 IDs
Damien Miller
Re: Patching a SSH 'Weakness'
Colocation donated by:
Syndicate