- Timestamp:
- Mar 3, 2021 1:32:33 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/DevRTC.cpp
r87773 r87937 254 254 255 255 #ifdef IN_RING3 256 if (RT_UNLIKELY(period != pThis->CurLogPeriod)) 257 #else 258 if (RT_UNLIKELY(period != pThis->CurHintPeriod)) 259 #endif 256 if (RT_LIKELY(period == pThis->CurLogPeriod)) 257 { /* likely */ } 258 else 260 259 { 261 #ifdef IN_RING3262 260 if (pThis->cRelLogEntries++ < 64) 263 261 LogRel(("RTC: period=%#x (%d) %u Hz\n", period, period, _32K / period)); 264 pThis->CurLogPeriod = period; 262 pThis->CurLogPeriod = period; 263 } 265 264 #endif 265 if (RT_LIKELY(period == pThis->CurHintPeriod)) 266 { /* likely */ } 267 else 268 { 266 269 pThis->CurHintPeriod = period; 267 270 PDMDevHlpTimerSetFrequencyHint(pDevIns, pThis->hPeriodicTimer, _32K / period); … … 275 278 #endif 276 279 PDMDevHlpTimerStop(pDevIns, pThis->hPeriodicTimer); 280 pThis->CurHintPeriod = 0; 281 pThis->CurLogPeriod = 0; 277 282 } 278 283 RT_NOREF(pDevIns);
Note:
See TracChangeset
for help on using the changeset viewer.