Changeset 40806 in vbox for trunk/src/VBox/VMM/VMMR0
- Timestamp:
- Apr 6, 2012 9:05:19 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/GVMMR0.cpp
r40595 r40806 416 416 &pGVMM->aHostCpus[iCpu]); 417 417 if (RT_SUCCESS(rc)) 418 rc = RTSpinlockCreate(&pGVMM->aHostCpus[iCpu].Ppt.hSpinlock );418 rc = RTSpinlockCreate(&pGVMM->aHostCpus[iCpu].Ppt.hSpinlock, RTSPINLOCK_FLAGS_INTERRUPT_SAFE, "GVMM/CPU"); 419 419 if (RT_FAILURE(rc)) 420 420 { … … 2176 2176 * Do the house keeping. 2177 2177 */ 2178 RTSPINLOCKTMP Tmp = RTSPINLOCKTMP_INITIALIZER; 2179 RTSpinlockAcquireNoInts(pCpu->Ppt.hSpinlock, &Tmp); 2178 RTSpinlockAcquire(pCpu->Ppt.hSpinlock); 2180 2179 2181 2180 if (++pCpu->Ppt.iTickHistorization >= pCpu->Ppt.cTicksHistoriziationInterval) … … 2197 2196 uHistMaxHz = pCpu->Ppt.aHzHistory[i]; 2198 2197 if (uHistMaxHz == pCpu->Ppt.uTimerHz) 2199 RTSpinlockReleaseNoInts(pCpu->Ppt.hSpinlock , &Tmp);2198 RTSpinlockReleaseNoInts(pCpu->Ppt.hSpinlock); 2200 2199 else if (uHistMaxHz) 2201 2200 { … … 2214 2213 else 2215 2214 pCpu->Ppt.cTicksHistoriziationInterval = 1; 2216 RTSpinlockReleaseNoInts(pCpu->Ppt.hSpinlock , &Tmp);2215 RTSpinlockReleaseNoInts(pCpu->Ppt.hSpinlock); 2217 2216 2218 2217 /*SUPR0Printf("Cpu%u: change to %u Hz / %u ns\n", pCpu->idxCpuSet, uHistMaxHz, cNsInterval);*/ … … 2227 2226 pCpu->Ppt.uTimerHz = 0; 2228 2227 pCpu->Ppt.cNsInterval = 0; 2229 RTSpinlockReleaseNoInts(pCpu->Ppt.hSpinlock , &Tmp);2228 RTSpinlockReleaseNoInts(pCpu->Ppt.hSpinlock); 2230 2229 2231 2230 /*SUPR0Printf("Cpu%u: stopping (%u Hz)\n", pCpu->idxCpuSet, uHistMaxHz);*/ … … 2234 2233 } 2235 2234 else 2236 RTSpinlockReleaseNoInts(pCpu->Ppt.hSpinlock , &Tmp);2235 RTSpinlockReleaseNoInts(pCpu->Ppt.hSpinlock); 2237 2236 } 2238 2237 #endif /* GVMM_SCHED_WITH_PPT */ … … 2281 2280 && !pCpu->Ppt.fStarting /* solaris paranoia */)) 2282 2281 { 2283 RTSPINLOCKTMP Tmp = RTSPINLOCKTMP_INITIALIZER; 2284 RTSpinlockAcquireNoInts(pCpu->Ppt.hSpinlock, &Tmp); 2282 RTSpinlockAcquire(pCpu->Ppt.hSpinlock); 2285 2283 2286 2284 pCpu->Ppt.uDesiredHz = uHz; … … 2302 2300 } 2303 2301 2304 RTSpinlockReleaseNoInts(pCpu->Ppt.hSpinlock , &Tmp);2302 RTSpinlockReleaseNoInts(pCpu->Ppt.hSpinlock); 2305 2303 2306 2304 if (cNsInterval) … … 2310 2308 AssertRC(rc); 2311 2309 2312 RTSpinlockAcquire NoInts(pCpu->Ppt.hSpinlock, &Tmp);2310 RTSpinlockAcquire(pCpu->Ppt.hSpinlock); 2313 2311 if (RT_FAILURE(rc)) 2314 2312 pCpu->Ppt.fStarted = false; 2315 2313 pCpu->Ppt.fStarting = false; 2316 RTSpinlockReleaseNoInts(pCpu->Ppt.hSpinlock , &Tmp);2314 RTSpinlockReleaseNoInts(pCpu->Ppt.hSpinlock); 2317 2315 } 2318 2316 }
Note:
See TracChangeset
for help on using the changeset viewer.