lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Thu, 04 Mar 2010 09:32:28 -0800
From:	Jeremy Fitzhardinge <jeremy@...p.org>
To:	John Stultz <johnstul@...ibm.com>
CC:	lkml <linux-kernel@...r.kernel.org>,
	Thomas Gleixner <tglx@...utronix.de>,
	Andrew Morton <akpm@...ux-foundation.org>
Subject: Re: [PATCH] time: Cleanup direct xtime usage in xen

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@...source.com>
> Cc: Thomas Gleixner<tglx@...utronix.de>
> Cc: Andrew Morton<akpm@...ux-foundation.org>
> Signed-off-by: John Stultz<johnstul@...ibm.com>
>    
Acked-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@...rix.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);
>
>    

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ