search for: init_hpet

Displaying 4 results from an estimated 4 matches for "init_hpet".

2007 May 15
3
[PATCH 1/12] Add suspend/resume to devices owned by Xen
...); hpet_counter64 += (u32)(counter - hpet_stamp); hpet_stamp = counter; - spin_unlock_irq(&platform_timer_lock); + spin_unlock_irqrestore(&platform_timer_lock, flags); set_timer(&hpet_overflow_timer, NOW() + hpet_overflow_period); } @@ -401,8 +428,6 @@ static int init_hpet(void) cfg |= HPET_CFG_ENABLE; hpet_write32(cfg, HPET_CFG); - read_platform_count = read_hpet_count; - hpet_rate = 1000000000000000ULL; /* 10^15 */ (void)do_div(hpet_rate, hpet_period); set_time_scale(&platform_timer_scale, hpet_rate); @@ -427,6 +452,23 @@ static in...
2012 Mar 27
0
[PATCH 1/4] x86/hpet: disable before reboot or kexec
...t.h> #include <mach_apic.h> @@ -375,6 +376,7 @@ void smp_send_stop(void) local_irq_disable(); __stop_this_cpu(); disable_IO_APIC(); + hpet_disable(); local_irq_enable(); } --- a/xen/arch/x86/time.c +++ b/xen/arch/x86/time.c @@ -377,7 +377,7 @@ static int __init init_hpet(struct platf static void resume_hpet(struct platform_timesource *pts) { - hpet_resume(); + hpet_resume(NULL); } static struct platform_timesource __initdata plt_hpet = --- a/xen/include/asm-x86/hpet.h +++ b/xen/include/asm-x86/hpet.h @@ -55,7 +55,12 @@ extern unsigned long hpet_addres...
2007 Apr 18
0
[RFC, PATCH 22/24] i386 Consolidate redundant timer code
...cpu_khz; -} - -static inline unsigned long long cycles_2_ns(unsigned long long cyc) -{ - return (cyc * cyc2ns_scale) >> CYC2NS_SCALE_FACTOR; -} - static unsigned long long monotonic_clock_hpet(void) { unsigned long long last_offset, this_offset, base; @@ -155,6 +122,7 @@ static int __init init_hpet(char* overri return -ENODEV; printk("Using HPET for gettimeofday\n"); + init_xtime_from_cmos(); if (cpu_has_tsc) { unsigned long tsc_quotient = calibrate_tsc_hpet(&tsc_hpet_quotient); if (tsc_quotient) { @@ -168,7 +136,7 @@ static int __init init_hpet(char* overri...
2007 Apr 18
0
[RFC, PATCH 22/24] i386 Consolidate redundant timer code
...cpu_khz; -} - -static inline unsigned long long cycles_2_ns(unsigned long long cyc) -{ - return (cyc * cyc2ns_scale) >> CYC2NS_SCALE_FACTOR; -} - static unsigned long long monotonic_clock_hpet(void) { unsigned long long last_offset, this_offset, base; @@ -155,6 +122,7 @@ static int __init init_hpet(char* overri return -ENODEV; printk("Using HPET for gettimeofday\n"); + init_xtime_from_cmos(); if (cpu_has_tsc) { unsigned long tsc_quotient = calibrate_tsc_hpet(&tsc_hpet_quotient); if (tsc_quotient) { @@ -168,7 +136,7 @@ static int __init init_hpet(char* overri...