search for: get_cmos_time

Displaying 10 results from an estimated 10 matches for "get_cmos_time".

2007 Apr 18
0
[RFC/PATCH PV_OPS X86_64 13/17] paravirt_ops - time updates
...Index: clean-start/include/asm-x86_64/time.h =================================================================== --- /dev/null +++ clean-start/include/asm-x86_64/time.h @@ -0,0 +1,18 @@ +#ifndef _ASM_X86_64_TIME_H +#define _ASM_X86_64_TIME_H + +inline void time_init_hook(void); +unsigned long do_get_cmos_time(void); +void do_set_rtc_mmss(unsigned long nowtime); + +#ifdef CONFIG_PARAVIRT +#include <asm/paravirt.h> +#else /* !CONFIG_PARAVIRT */ + +#define get_wallclock() do_get_cmos_time() +#define set_wallclock(x) do_set_rtc_mmss(x) +#define do_time_init() time_init_hook() + +#endif /* CONFIG_PARAV...
2007 Apr 18
0
[RFC/PATCH PV_OPS X86_64 13/17] paravirt_ops - time updates
...Index: clean-start/include/asm-x86_64/time.h =================================================================== --- /dev/null +++ clean-start/include/asm-x86_64/time.h @@ -0,0 +1,18 @@ +#ifndef _ASM_X86_64_TIME_H +#define _ASM_X86_64_TIME_H + +inline void time_init_hook(void); +unsigned long do_get_cmos_time(void); +void do_set_rtc_mmss(unsigned long nowtime); + +#ifdef CONFIG_PARAVIRT +#include <asm/paravirt.h> +#else /* !CONFIG_PARAVIRT */ + +#define get_wallclock() do_get_cmos_time() +#define set_wallclock(x) do_set_rtc_mmss(x) +#define do_time_init() time_init_hook() + +#endif /* CONFIG_PARAV...
2007 Apr 18
0
[RFC, PATCH 22/24] i386 Consolidate redundant timer code
...16-rc6/arch/i386/kernel/time.c =================================================================== --- linux-2.6.16-rc6.orig/arch/i386/kernel/time.c 2006-03-12 19:49:53.000000000 -0800 +++ linux-2.6.16-rc6/arch/i386/kernel/time.c 2006-03-12 19:57:42.000000000 -0800 @@ -329,6 +329,7 @@ unsigned long get_cmos_time(void) } EXPORT_SYMBOL(get_cmos_time); +int no_sync_cmos_timer; static void sync_cmos_clock(unsigned long dummy); static DEFINE_TIMER(sync_cmos_timer, sync_cmos_clock, 0, 0); @@ -375,7 +376,8 @@ static void sync_cmos_clock(unsigned lon void notify_arch_cmos_timer(void) { - mod_timer(&amp...
2007 Apr 18
0
[RFC, PATCH 22/24] i386 Consolidate redundant timer code
...16-rc6/arch/i386/kernel/time.c =================================================================== --- linux-2.6.16-rc6.orig/arch/i386/kernel/time.c 2006-03-12 19:49:53.000000000 -0800 +++ linux-2.6.16-rc6/arch/i386/kernel/time.c 2006-03-12 19:57:42.000000000 -0800 @@ -329,6 +329,7 @@ unsigned long get_cmos_time(void) } EXPORT_SYMBOL(get_cmos_time); +int no_sync_cmos_timer; static void sync_cmos_clock(unsigned long dummy); static DEFINE_TIMER(sync_cmos_timer, sync_cmos_clock, 0, 0); @@ -375,7 +376,8 @@ static void sync_cmos_clock(unsigned lon void notify_arch_cmos_timer(void) { - mod_timer(&amp...
2007 May 15
3
[PATCH 1/12] Add suspend/resume to devices owned by Xen
...ion (after all CPUs are booted). */ @@ -926,6 +1013,56 @@ unsigned long get_localtime(struct domai { return wc_sec + (wc_nsec + NOW()) / 1000000000ULL + d->time_offset_seconds; +} + +/* timer suspend/resume */ +static u64 sleep_start; +int time_suspend(void) +{ + sleep_start = get_cmos_time(); + + /* Better to cancel calibration timer for accuracy */ + destroy_percpu_time(); + + if (cur_timer->suspend) + cur_timer->suspend(); + return 0; +} + +int time_resume(void) +{ + u64 sleep_diff; + u64 now; + + on_resume = 1; + + /* Set the clock to HZ Hz */...
2012 Mar 05
6
[PATCH 3/5] RTC: Add UIP(update in progress) check logic
The UIP(update in progress) is set when RTC is in updating. And the update cycle begins 244us later after UIP is set. Signed-off-by: Yang Zhang <yang.z.zhang@Intel.com> diff -r 47cb862a07c2 -r edc35b026509 xen/arch/x86/hvm/rtc.c --- a/xen/arch/x86/hvm/rtc.c Mon Mar 05 14:39:07 2012 +0800 +++ b/xen/arch/x86/hvm/rtc.c Mon Mar 05 14:39:41 2012 +0800 @@ -28,6 +28,8 @@ #include
2007 Apr 18
2
[PATCH] x86_64 paravirt_ops port
...set_wallclock(nowtime); + spin_unlock(&rtc_lock); +} /* monotonic_clock(): returns # of nanoseconds passed since time_init() * Note: This function is required to return accurate @@ -494,13 +498,11 @@ unsigned long long sched_clock(void) return cycles_2_ns(a); } -static unsigned long get_cmos_time(void) +unsigned long do_get_cmos_time(void) { unsigned int year, mon, day, hour, min, sec; - unsigned long flags; unsigned extyear = 0; - spin_lock_irqsave(&rtc_lock, flags); do { sec = CMOS_READ(RTC_SECONDS); @@ -516,7 +518,6 @@ static unsigned long get_cmos_time(void) #endif...
2007 Apr 18
2
[PATCH] x86_64 paravirt_ops port
...set_wallclock(nowtime); + spin_unlock(&rtc_lock); +} /* monotonic_clock(): returns # of nanoseconds passed since time_init() * Note: This function is required to return accurate @@ -494,13 +498,11 @@ unsigned long long sched_clock(void) return cycles_2_ns(a); } -static unsigned long get_cmos_time(void) +unsigned long do_get_cmos_time(void) { unsigned int year, mon, day, hour, min, sec; - unsigned long flags; unsigned extyear = 0; - spin_lock_irqsave(&rtc_lock, flags); do { sec = CMOS_READ(RTC_SECONDS); @@ -516,7 +518,6 @@ static unsigned long get_cmos_time(void) #endif...
2007 Apr 18
43
[RFC PATCH 00/35] Xen i386 paravirtualization support
Unlike full virtualization in which the virtual machine provides the same platform interface as running natively on the hardware, paravirtualization requires modification to the guest operating system to work with the platform interface provided by the hypervisor. Xen was designed with performance in mind. Calls to the hypervisor are minimized, batched if necessary, and non-critical codepaths
2007 Apr 18
43
[RFC PATCH 00/35] Xen i386 paravirtualization support
Unlike full virtualization in which the virtual machine provides the same platform interface as running natively on the hardware, paravirtualization requires modification to the guest operating system to work with the platform interface provided by the hypervisor. Xen was designed with performance in mind. Calls to the hypervisor are minimized, batched if necessary, and non-critical codepaths