search for: init_pit

Displaying 3 results from an estimated 3 matches for "init_pit".

2007 May 15
3
[PATCH 1/12] Add suspend/resume to devices owned by Xen
...p = counter; - spin_unlock_irq(&platform_timer_lock); + spin_unlock_irqrestore(&platform_timer_lock, flags); } static u64 read_pit_count(void) @@ -312,17 +322,33 @@ static u64 read_pit_count(void) return pit_counter64 + (u16)(pit_stamp - pit_read_counter()); } -static void init_pit(void) -{ - read_platform_count = read_pit_count; - +static int init_pit(void) +{ pit_overflow(); platform_timer_stamp = pit_counter64; set_time_scale(&platform_timer_scale, CLOCK_TICK_RATE); printk("Platform timer is %s PIT\n", freq_string(CLOCK_TICK_RATE));...
2007 Apr 18
0
[RFC, PATCH 22/24] i386 Consolidate redundant timer code
...it.c =================================================================== --- linux-2.6.16-rc6.orig/arch/i386/kernel/timers/timer_pit.c 2006-01-02 19:21:10.000000000 -0800 +++ linux-2.6.16-rc6/arch/i386/kernel/timers/timer_pit.c 2006-03-12 19:57:42.000000000 -0800 @@ -27,6 +27,7 @@ static int __init init_pit(char* overrid if (override[0] && strncmp(override,"pit",3)) printk(KERN_ERR "Warning: clock= override failed. Defaulting " "to PIT\n"); + init_xtime_from_cmos(); init_cpu_khz(); count_p = LATCH; return 0; Index: linux-2.6.16-rc6/arch/i386/ker...
2007 Apr 18
0
[RFC, PATCH 22/24] i386 Consolidate redundant timer code
...it.c =================================================================== --- linux-2.6.16-rc6.orig/arch/i386/kernel/timers/timer_pit.c 2006-01-02 19:21:10.000000000 -0800 +++ linux-2.6.16-rc6/arch/i386/kernel/timers/timer_pit.c 2006-03-12 19:57:42.000000000 -0800 @@ -27,6 +27,7 @@ static int __init init_pit(char* overrid if (override[0] && strncmp(override,"pit",3)) printk(KERN_ERR "Warning: clock= override failed. Defaulting " "to PIT\n"); + init_xtime_from_cmos(); init_cpu_khz(); count_p = LATCH; return 0; Index: linux-2.6.16-rc6/arch/i386/ker...