From: Jeremy Fitzhardinge <jeremy@goop.org>
To: John Stultz <johnstul@us.ibm.com>
Cc: lkml <linux-kernel@vger.kernel.org>,
Thomas Gleixner <tglx@linutronix.de>,
Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [PATCH] time: Cleanup direct xtime usage in xen
Date: Thu, 04 Mar 2010 09:32:28 -0800 [thread overview]
Message-ID: <4B8FEEAC.9070105@goop.org> (raw)
In-Reply-To: <1267672280-21386-2-git-send-email-johnstul@us.ibm.com>
On 03/03/2010 07:11 PM, John Stultz wrote:
> Not critical, 2.6.35 material.
>
> Cleanup xen's direct use of internal timekeeping values.
>
> Cc: Jeremy Fitzhardinge<jeremy@xensource.com>
> Cc: Thomas Gleixner<tglx@linutronix.de>
> Cc: Andrew Morton<akpm@linux-foundation.org>
> Signed-off-by: John Stultz<johnstul@us.ibm.com>
>
Acked-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
> ---
> arch/x86/xen/time.c | 6 +++---
> 1 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/arch/x86/xen/time.c b/arch/x86/xen/time.c
> index 0d3f07c..6365df9 100644
> --- a/arch/x86/xen/time.c
> +++ b/arch/x86/xen/time.c
> @@ -475,6 +475,7 @@ void xen_timer_resume(void)
> __init void xen_time_init(void)
> {
> int cpu = smp_processor_id();
> + struct timespec tp;
>
> clocksource_register(&xen_clocksource);
>
> @@ -486,9 +487,8 @@ __init void xen_time_init(void)
> }
>
> /* Set initial system time with full resolution */
> - xen_read_wallclock(&xtime);
> - set_normalized_timespec(&wall_to_monotonic,
> - -xtime.tv_sec, -xtime.tv_nsec);
> + xen_read_wallclock(&tp);
> + do_settimeofday(&tp);
>
> setup_force_cpu_cap(X86_FEATURE_TSC);
>
>
next prev parent reply other threads:[~2010-03-04 17:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-04 3:11 [PATCH] time: Cleanup warp_clock John Stultz
2010-03-04 3:11 ` [PATCH] time: Cleanup direct xtime usage in xen John Stultz
2010-03-04 3:11 ` [PATCH] xtensa: Fix unnecessary setting of xtime John Stultz
2010-03-04 17:32 ` Jeremy Fitzhardinge [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-01-29 4:24 [PATCH] time: Cleanup direct xtime usage in xen John Stultz
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=4B8FEEAC.9070105@goop.org \
--to=jeremy@goop.org \
--cc=akpm@linux-foundation.org \
--cc=johnstul@us.ibm.com \
--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 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.