Displaying 3 results from an estimated 3 matches for "read_platform_stime".
2012 Mar 20
5
[hybrid]: hang in update_wall_time
...n stime_local_stamp in cpu_time that
suddenly jumps to a large 64bit value. I''ve been chasing to figure
where that happens, and why for the hybrid and not PV. It appears the
source of jump is time_calibration_std_rendezvous() in
c->stime_master_stamp. Chasing that, seems to come from
read_platform_stime(). The jump happens after switch to
xen clocksource in dom0.
I''ll continue to debug, but let me know if you have any thoughts or
idea what might be going on.
thanks,
Mukesh
2007 May 15
3
[PATCH 1/12] Add suspend/resume to devices owned by Xen
...er_cyclone = {
+ .name = "CYCLONE",
+ .init = init_cyclone,
+ .read_count = read_cyclone_count,
+ .resume = resume_cyclone,
+};
+
/************************************************************
* GENERIC PLATFORM TIMER INFRASTRUCTURE
*/
@@ -525,11 +583,12 @@ static s_time_t read_platform_stime(void
{
u64 counter;
s_time_t stime;
-
- spin_lock_irq(&platform_timer_lock);
- counter = read_platform_count();
+ unsigned long flags;
+
+ spin_lock_irqsave(&platform_timer_lock, flags);
+ counter = cur_timer->read_count();
stime = __read_platform_stime(c...
2007 Aug 30
0
[PATCH][Retry 1] 1/4: cpufreq/PowerNow! in Xen: Xen timer changes
...;
+ new_mult = new_mult << 1;
+ }
+
+ t->tsc_scale.mul_frac = new_mult;
+ t->tsc_scale.shift = new_shift;
+ local_irq_disable();
+ rdtscll(curr_tsc);
+ t->local_tsc_stamp = curr_tsc;
+ t->stime_local_stamp = get_s_time();
+ t->stime_master_stamp = read_platform_stime();
+ local_irq_enable();
+
+ platform_time_calibration();
+}
+
/* Set clock to <secs,usecs> after 00:00:00 UTC, 1 January, 1970. */
void do_settime(unsigned long secs, unsigned long nsecs, u64 system_time_base)
{
@@ -862,7 +897,7 @@ static void local_time_calibration(void
if (...