VirtualBox

Ignore:
Timestamp:
Sep 19, 2008 8:45:10 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
36823
Message:

#2247 (public), #3193 (internal): handle jiffies wrap around

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/linux/timer-r0drv-linux.c

    r12141 r12591  
    398398        {
    399399            pSubTimer->ulNextJiffies += pTimer->cJiffies;
    400             while (pSubTimer->ulNextJiffies < jiffies)
     400            /* Prevent overflows when the jiffies counter wraps around.
     401             * Special thanks to Ken Preslan for helping debugging! */
     402            while (jiffies - pSubTimer->ulNextJiffies < 3600*HZ)
    401403            {
    402404                pSubTimer->ulNextJiffies += pTimer->cJiffies;
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