Displaying 1 result from an estimated 1 matches for "pit_counter64".
2007 May 15
3
[PATCH 1/12] Add suspend/resume to devices owned by Xen
...is a really critical
@@ -299,12 +308,13 @@ static void pit_overflow(void)
static void pit_overflow(void)
{
u16 counter;
-
- spin_lock_irq(&platform_timer_lock);
+ unsigned long flags;
+
+ spin_lock_irqsave(&platform_timer_lock, flags);
counter = pit_read_counter();
pit_counter64 += (u16)(pit_stamp - counter);
pit_stamp = 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_st...