From: Dimitri Sivanich <sivanich@sgi.com>
To: Ingo Molnar <mingo@elte.hu>
Cc: Thomas Gleixner <tglx@linutronix.de>,
Ingo Molnar <mingo@redhat.com>, "H. Peter Anvin" <hpa@zytor.com>,
John Stultz <johnstul@us.ibm.com>,
x86@kernel.org, linux-kernel@vger.kernel.org,
Jack Steiner <steiner@sgi.com>
Subject: Re: [PATCH] x86 uv: lower UV rtc clocksource rating
Date: Fri, 17 Feb 2012 08:16:41 -0600 [thread overview]
Message-ID: <20120217141641.GA28063@sgi.com> (raw)
In-Reply-To: <20120217120242.GC25601@elte.hu>
On Fri, Feb 17, 2012 at 01:02:42PM +0100, Ingo Molnar wrote:
>
> * Dimitri Sivanich <sivanich@sgi.com> wrote:
>
> > Lower the rating of the UV rtc clocksource to just below that of the tsc.
>
> This changelog is deficient for obvious reasons, mind updating
> it?
>
OK. Is this sufficient?
Lower the rating of the UV rtc clocksource to just below that of the tsc.
Reading the tsc clocksource has lower latency than reading the rtc, so favor
it in situations where it is synchronized and stable. When the tsc is
unsynchronized, the rtc needs to be the chosen clocksource.
Signed-off-by: Dimitri Sivanich <sivanich@sgi.com>
---
arch/x86/platform/uv/uv_time.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
Index: linux/arch/x86/platform/uv/uv_time.c
===================================================================
--- linux.orig/arch/x86/platform/uv/uv_time.c
+++ linux/arch/x86/platform/uv/uv_time.c
@@ -37,7 +37,7 @@ static void uv_rtc_timer_setup(enum cloc
static struct clocksource clocksource_uv = {
.name = RTC_NAME,
- .rating = 400,
+ .rating = 299,
.read = uv_read_rtc,
.mask = (cycle_t)UVH_RTC_REAL_TIME_CLOCK_MASK,
.flags = CLOCK_SOURCE_IS_CONTINUOUS,
@@ -379,10 +379,6 @@ static __init int uv_rtc_setup_clock(voi
if (!is_uv_system())
return -ENODEV;
- /* If single blade, prefer tsc */
- if (uv_num_possible_blades() == 1)
- clocksource_uv.rating = 250;
-
rc = clocksource_register_hz(&clocksource_uv, sn_rtc_cycles_per_second);
if (rc)
printk(KERN_INFO "UV RTC clocksource failed rc %d\n", rc);
next prev parent reply other threads:[~2012-02-17 14:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-16 20:10 [PATCH] x86 uv: lower UV rtc clocksource rating Dimitri Sivanich
2012-02-17 12:02 ` Ingo Molnar
2012-02-17 14:16 ` Dimitri Sivanich [this message]
2012-02-19 12:51 ` Ingo Molnar
2012-02-20 11:46 ` [tip:x86/uv] x86/UV: Lower " tip-bot for Dimitri Sivanich
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=20120217141641.GA28063@sgi.com \
--to=sivanich@sgi.com \
--cc=hpa@zytor.com \
--cc=johnstul@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=mingo@redhat.com \
--cc=steiner@sgi.com \
--cc=tglx@linutronix.de \
--cc=x86@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.