VirtualBox

Changeset 9117 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 26, 2008 11:29:13 AM (17 years ago)
Author:
vboxsync
Message:

Removed the #if 0 case from the #2890 fix.

File:
1 edited

Legend:

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

    r9088 r9117  
    370370{
    371371    RTCState *s = (RTCState*)opaque;
    372     int64_t delay;
    373372
    374373    /* if the oscillator is not in normal operation, we do not update */
     
    383382            s->cmos_data[RTC_REG_A] |= REG_A_UIP;
    384383        }
    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
    392385        /* 244140 ns = 8 / 32768 seconds */
    393         delay = TMTimerFromNano(s->CTXSUFF(pSecondTimer2), 244140);
    394 #endif
     386        uint64_t delay = TMTimerFromNano(s->CTXSUFF(pSecondTimer2), 244140);
    395387        TMTimerSet(s->CTXSUFF(pSecondTimer2), s->next_second_time + delay);
    396388    }
Note: See TracChangeset for help on using the changeset viewer.

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