Changeset 3257 in vbox
- Timestamp:
- Jun 24, 2007 6:41:16 AM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 22286
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/DevRTC.cpp
r2981 r3257 139 139 /** The RTC device helpers. */ 140 140 HCPTRTYPE(PCPDMRTCHLP) pRtcHlpHC; 141 /** Number of release log entries. Used to prevent flo ading. */141 /** Number of release log entries. Used to prevent flooding. */ 142 142 uint32_t cRelLogEntries; 143 uint32_t alignment; 143 /** The current/previous timer period. Used to prevent flooding changes. */ 144 uint32_t CurPeriod; 144 145 }; 145 146 … … 169 170 TMTimerSet(s->CTXSUFF(pPeriodicTimer), s->next_periodic_time); 170 171 171 if (s->cRelLogEntries++ < 64) 172 LogRel(("RTC: period=%#x (%d) %u Hz\n", period, period, _32K / period)); 172 if (period != s->CurPeriod) 173 { 174 if (s->cRelLogEntries++ < 64) 175 LogRel(("RTC: period=%#x (%d) %u Hz\n", period, period, _32K / period)); 176 s->CurPeriod = period; 177 } 173 178 } else { 174 179 if (TMTimerIsActive(s->CTXSUFF(pPeriodicTimer)) && s->cRelLogEntries++ < 64) … … 519 524 int period = 1 << (period_code - 1); 520 525 LogRel(("RTC: period=%#x (%d) %u Hz (restore)\n", period, period, _32K / period)); 526 s->CurPeriod = period; 521 527 } else { 522 528 LogRel(("RTC: stopped the periodic timer (restore)\n")); 529 s->CurPeriod = 0; 523 530 } 524 531 s->cRelLogEntries = 0;
Note:
See TracChangeset
for help on using the changeset viewer.