VirtualBox

Changeset 3257 in vbox


Ignore:
Timestamp:
Jun 24, 2007 6:41:16 AM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
22286
Message:

rtc_timer_update is called on every timer tick, so don't attempt LogRel unless something actually changed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/DevRTC.cpp

    r2981 r3257  
    139139    /** The RTC device helpers. */
    140140    HCPTRTYPE(PCPDMRTCHLP) pRtcHlpHC;
    141     /** Number of release log entries. Used to prevent floading. */
     141    /** Number of release log entries. Used to prevent flooding. */
    142142    uint32_t        cRelLogEntries;
    143     uint32_t        alignment;
     143    /** The current/previous timer period. Used to prevent flooding changes. */
     144    uint32_t        CurPeriod;
    144145};
    145146
     
    169170        TMTimerSet(s->CTXSUFF(pPeriodicTimer), s->next_periodic_time);
    170171
    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        }
    173178    } else {
    174179        if (TMTimerIsActive(s->CTXSUFF(pPeriodicTimer)) && s->cRelLogEntries++ < 64)
     
    519524        int period = 1 << (period_code - 1);
    520525        LogRel(("RTC: period=%#x (%d) %u Hz (restore)\n", period, period, _32K / period));
     526        s->CurPeriod = period;
    521527    } else {
    522528        LogRel(("RTC: stopped the periodic timer (restore)\n"));
     529        s->CurPeriod = 0;
    523530    }
    524531    s->cRelLogEntries = 0;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette