Displaying 4 results from an estimated 4 matches for "init_xtime_from_cmos".
2007 Apr 18
0
[RFC, PATCH 22/24] i386 Consolidate redundant timer code
...diff, sleep_start;
@@ -446,16 +448,19 @@ static int time_init_device(void)
device_initcall(time_init_device);
-#ifdef CONFIG_HPET_TIMER
-extern void (*late_time_init)(void);
-/* Duplicate of time_init() below, with hpet_enable part added */
-static void __init hpet_time_init(void)
+void __init init_xtime_from_cmos(void)
{
xtime.tv_sec = get_cmos_time();
xtime.tv_nsec = (INITIAL_JIFFIES % HZ) * (NSEC_PER_SEC / HZ);
set_normalized_timespec(&wall_to_monotonic,
-xtime.tv_sec, -xtime.tv_nsec);
+}
+#ifdef CONFIG_HPET_TIMER
+extern void (*late_time_init)(void);
+/* Duplicate of time_init() below, wi...
2007 Apr 18
0
[RFC, PATCH 22/24] i386 Consolidate redundant timer code
...diff, sleep_start;
@@ -446,16 +448,19 @@ static int time_init_device(void)
device_initcall(time_init_device);
-#ifdef CONFIG_HPET_TIMER
-extern void (*late_time_init)(void);
-/* Duplicate of time_init() below, with hpet_enable part added */
-static void __init hpet_time_init(void)
+void __init init_xtime_from_cmos(void)
{
xtime.tv_sec = get_cmos_time();
xtime.tv_nsec = (INITIAL_JIFFIES % HZ) * (NSEC_PER_SEC / HZ);
set_normalized_timespec(&wall_to_monotonic,
-xtime.tv_sec, -xtime.tv_nsec);
+}
+#ifdef CONFIG_HPET_TIMER
+extern void (*late_time_init)(void);
+/* Duplicate of time_init() below, wi...
2007 Apr 18
0
[RFC, PATCH 23/24] i386 Vmi timer patch
...0000 / HZ);
-
- /* Read the Time Stamp Counter */
- rdtscll(this_offset);
-
/* return the value in ns */
- return cycles_2_ns(this_offset);
+ return cycles_2_ns(sched_clock_cycles());
}
static void delay_tsc(unsigned long loops)
@@ -510,6 +506,7 @@ static int __init init_tsc(char* overrid
init_xtime_from_cmos();
fast_gettimeoffset_quotient = tsc_quotient;
use_tsc = 1;
+ use_sched_clock_cycles = 1;
/*
* We could be more selective here I suspect
* and just enable this for the next intel chips ?
Index: linux-2.6.16-rc6/arch/i386/kernel/timers/timer_vmi.c
============================...
2007 Apr 18
0
[RFC, PATCH 23/24] i386 Vmi timer patch
...0000 / HZ);
-
- /* Read the Time Stamp Counter */
- rdtscll(this_offset);
-
/* return the value in ns */
- return cycles_2_ns(this_offset);
+ return cycles_2_ns(sched_clock_cycles());
}
static void delay_tsc(unsigned long loops)
@@ -510,6 +506,7 @@ static int __init init_tsc(char* overrid
init_xtime_from_cmos();
fast_gettimeoffset_quotient = tsc_quotient;
use_tsc = 1;
+ use_sched_clock_cycles = 1;
/*
* We could be more selective here I suspect
* and just enable this for the next intel chips ?
Index: linux-2.6.16-rc6/arch/i386/kernel/timers/timer_vmi.c
============================...