Changeset 9117 in vbox for trunk/src/VBox
- Timestamp:
- May 26, 2008 11:29:13 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/DevRTC.cpp
r9088 r9117 370 370 { 371 371 RTCState *s = (RTCState*)opaque; 372 int64_t delay;373 372 374 373 /* if the oscillator is not in normal operation, we do not update */ … … 383 382 s->cmos_data[RTC_REG_A] |= REG_A_UIP; 384 383 } 385 #if 0 /* old: winds up waiting for 10ms... */ 386 /* should be 244 us = 8 / 32768 seconds, but currently the 387 timers do not have the necessary resolution. */ 388 delay = (TMTimerGetFreq(s->CTXSUFF(pSecondTimer2)) * 1) / 100; 389 if (delay < 1) 390 delay = 1; 391 #else 384 392 385 /* 244140 ns = 8 / 32768 seconds */ 393 delay = TMTimerFromNano(s->CTXSUFF(pSecondTimer2), 244140); 394 #endif 386 uint64_t delay = TMTimerFromNano(s->CTXSUFF(pSecondTimer2), 244140); 395 387 TMTimerSet(s->CTXSUFF(pSecondTimer2), s->next_second_time + delay); 396 388 }
Note:
See TracChangeset
for help on using the changeset viewer.