search for: tsc_ticks2n

Displaying 2 results from an estimated 2 matches for "tsc_ticks2n".

Did you mean: tsc_ticks2ns
2010 Dec 14
0
[PATCH 1/5] vtdt: Define a new function gtsc_to_gtime()
...return time; } void pv_soft_rdtsc(struct vcpu *v, struct cpu_user_regs *regs, int rdtscp) diff -r 373b7357d977 xen/include/asm-x86/time.h --- a/xen/include/asm-x86/time.h Thu Dec 09 22:32:43 2010 +0800 +++ b/xen/include/asm-x86/time.h Thu Dec 09 22:32:51 2010 +0800 @@ -59,7 +59,8 @@ uint64_t tsc_ticks2ns(uint64_t ticks); uint64_t tsc_ticks2ns(uint64_t ticks); void pv_soft_rdtsc(struct vcpu *v, struct cpu_user_regs *regs, int rdtscp); -u64 gtime_to_gtsc(struct domain *d, u64 tsc); +u64 gtime_to_gtsc(struct domain *d, u64 time); +u64 gtsc_to_gtime(struct domain *d, u64 tsc); void tsc_set_info...
2011 Oct 25
5
[PATCH] pm : provide CC7/PC2 residency
...} diff -r 662dbf6ee71c xen/arch/x86/acpi/cpu_idle.c --- a/xen/arch/x86/acpi/cpu_idle.c Mon Oct 24 18:01:07 2011 +0100 +++ b/xen/arch/x86/acpi/cpu_idle.c Fri Oct 28 21:33:07 2011 +0800 @@ -60,11 +60,13 @@ #define GET_HW_RES_IN_NS(msr, val) \ do { rdmsrl(msr, val); val = tsc_ticks2ns(val); } while( 0 ) +#define GET_PC2_RES(val) GET_HW_RES_IN_NS(0x60D, val) /* SNB only */ #define GET_PC3_RES(val) GET_HW_RES_IN_NS(0x3F8, val) #define GET_PC6_RES(val) GET_HW_RES_IN_NS(0x3F9, val) #define GET_PC7_RES(val) GET_HW_RES_IN_NS(0x3FA, val) #define GET_CC3_RES(val) GET_HW_RES_IN...