VirtualBox

Changeset 6409 in vbox


Ignore:
Timestamp:
Jan 21, 2008 2:09:22 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
27368
Message:

Backed out the TMAll.cpp part of r27160 because it isn't just shutting up a problem that needs to be fixed if it's there.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/TMAll.cpp

    r6296 r6409  
    508508
    509509            case TMTIMERSTATE_PENDING_SCHEDULE:
     510            case TMTIMERSTATE_PENDING_STOP_SCHEDULE:
    510511                if (tmTimerTry(pTimer, TMTIMERSTATE_PENDING_SCHEDULE_SET_EXPIRE, enmState))
    511512                {
    512513                    Assert(!pTimer->offPrev);
    513514                    Assert(!pTimer->offNext);
    514                     pTimer->u64Expire = u64Expire;
    515                     TM_SET_STATE(pTimer, TMTIMERSTATE_PENDING_SCHEDULE);
    516                     tmSchedule(pTimer);
    517                     STAM_PROFILE_STOP(&pTimer->CTXALLSUFF(pVM)->tm.s.CTXALLSUFF(StatTimerSet), a);
    518                     return VINF_SUCCESS;
    519                 }
    520                 break;
    521 
    522 
    523             case TMTIMERSTATE_PENDING_STOP_SCHEDULE:
    524                 if (tmTimerTry(pTimer, TMTIMERSTATE_PENDING_SCHEDULE_SET_EXPIRE, enmState))
    525                 {
    526                     /* The timer is possibly being excluded from the active list atm */
    527                     ///Assert(!pTimer->offPrev);
    528                     ///Assert(!pTimer->offNext);
    529515                    pTimer->u64Expire = u64Expire;
    530516                    TM_SET_STATE(pTimer, TMTIMERSTATE_PENDING_SCHEDULE);
     
    11711157                    TMTIMER_SET_NEXT(pPrev, pNext);
    11721158                else
    1173                 {       
     1159                {
    11741160                    TMTIMER_SET_HEAD(pQueue, pNext);
    11751161                    pQueue->u64Expire = pNext ? pNext->u64Expire : INT64_MAX;
     
    11811167                /* fall thru */
    11821168            }
    1183    
     1169
    11841170            /*
    11851171             * Schedule timer (insert into the active list).
     
    12271213                return;
    12281214            }
    1229    
     1215
    12301216            /*
    12311217             * Stop the timer in active list.
     
    12511237                /* fall thru */
    12521238            }
    1253    
     1239
    12541240            /*
    12551241             * Stop the timer (not on the active list).
     
    12601246                    break;
    12611247                return;
    1262    
     1248
    12631249            /*
    12641250             * Stop & destroy the timer.
     
    12811267                /* fall thru */
    12821268            }
    1283    
     1269
    12841270            /*
    12851271             * Destroy the timer.
     
    12911277                const PTMTIMER pBigPrev = (PTMTIMER)(pTimer->pBigPrev ? MMHyperR3ToCC(pVM, pTimer->pBigPrev) : NULL);
    12921278                const PTMTIMER pBigNext = (PTMTIMER)(pTimer->pBigNext ? MMHyperR3ToCC(pVM, pTimer->pBigNext) : NULL);
    1293    
     1279
    12941280                /* unlink from created list */
    12951281                if (pBigPrev)
     
    13011287                pTimer->pBigNext = 0;
    13021288                pTimer->pBigPrev = 0;
    1303    
     1289
    13041290                /* free */
    13051291                Log2(("TM: Inserting %p into the free list ahead of %p!\n", pTimer, pVM->tm.s.pFree));
     
    13091295                return;
    13101296            }
    1311    
     1297
    13121298            /*
    13131299             * Postpone these until they get into the right state.
     
    13181304                STAM_COUNTER_INC(&pTimer->CTXALLSUFF(pVM)->tm.s.CTXALLSUFF(StatPostponed));
    13191305                return;
    1320    
     1306
    13211307            /*
    13221308             * None of these can be in the schedule.
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