[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] x86 time: Fix build and clean up.
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1259158557 0 # Node ID a4dd434bf97541c95ddc09185a12ba94ad3f60cb # Parent ce752efab1e11df69dd802a3c0865b40df81ffb1 x86 time: Fix build and clean up. Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx> --- xen/arch/x86/time.c | 15 --------------- 1 files changed, 15 deletions(-) diff -r ce752efab1e1 -r a4dd434bf975 xen/arch/x86/time.c --- a/xen/arch/x86/time.c Wed Nov 25 14:12:58 2009 +0000 +++ b/xen/arch/x86/time.c Wed Nov 25 14:15:57 2009 +0000 @@ -46,13 +46,6 @@ static u32 wc_sec, wc_nsec; /* UTC time static u32 wc_sec, wc_nsec; /* UTC time at last 'time update'. */ static DEFINE_SPINLOCK(wc_lock); -/* moved to <asm/domain.h> -struct time_scale { - int shift; - u32 mul_frac; -}; -*/ - struct cpu_time { u64 local_tsc_stamp; s_time_t stime_local_stamp; @@ -1754,11 +1747,9 @@ void tsc_set_info(struct domain *d, switch ( d->arch.tsc_mode = tsc_mode ) { case TSC_MODE_NEVER_EMULATE: - gdprintk(XENLOG_G_INFO, "%s: never emulating TSC\n",__func__) d->arch.vtsc = 0; break; case TSC_MODE_ALWAYS_EMULATE: - gdprintk(XENLOG_G_INFO, "%s: always emulating TSC\n",__func__) d->arch.vtsc = 1; d->arch.vtsc_offset = get_s_time() - elapsed_nsec; set_time_scale_identity(&d->arch.vtsc_to_ns); @@ -1767,15 +1758,12 @@ void tsc_set_info(struct domain *d, d->arch.vtsc_offset = get_s_time() - elapsed_nsec; if ( (host_tsc_is_safe() && incarnation == 0) || !d->domain_id ) { - gdprintk(XENLOG_G_INFO, "%s: using safe native TSC\n",__func__) /* use native TSC if initial host supports it */ d->arch.vtsc = 0; d->arch.tsc_khz = gtsc_khz ? gtsc_khz : cpu_khz; set_time_scale(&d->arch.vtsc_to_ns, d->arch.tsc_khz * 1000 ); set_time_scale_identity(&d->arch.ns_to_vtsc); } else if ( gtsc_khz != 0 && gtsc_khz != 1000000UL ) { - gdprintk(XENLOG_G_INFO, "%s: safe native TSC on initial host," - "but now using emulation\n",__func__) /* was native on initial host, now emulated at initial tsc hz*/ d->arch.vtsc = 1; d->arch.tsc_khz = gtsc_khz; @@ -1783,15 +1771,12 @@ void tsc_set_info(struct domain *d, d->arch.ns_to_vtsc = scale_reciprocal(d->arch.vtsc_to_ns); } else { - gdprintk(XENLOG_G_INFO, "%s: unsafe TSC on initial host," - "using emulation\n",__func__) d->arch.vtsc = 1; set_time_scale_identity(&d->arch.vtsc_to_ns); set_time_scale_identity(&d->arch.ns_to_vtsc); } break; case TSC_MODE_PVRDTSCP: - gdprintk(XENLOG_G_INFO, "%s: using PVRDTSCP\n",__func__) if ( boot_cpu_has(X86_FEATURE_RDTSCP) && gtsc_khz != 0 ) { d->arch.vtsc = 0; set_time_scale(&d->arch.vtsc_to_ns, gtsc_khz * 1000 ); _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |