儲存庫 vbox 的更動 37295
- 時間撮記:
- 2011-6-1 下午02:20:54 (13 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Runtime/r0drv/linux/mp-r0drv-linux.c
r37294 r37295 204 204 RTMPARGS Args; 205 205 206 RTTHREADPREEMPTSTATE PreemptState = RTTHREADPREEMPTSTATE_INITIALIZER; 206 207 Args.pfnWorker = pfnWorker; 207 208 Args.pvUser1 = pvUser1; … … 217 218 #else /* older kernels */ 218 219 219 # ifdef preempt_disable 220 preempt_disable(); 221 # endif 220 RTThreadPreemptDisable(&PreemptState); 222 221 rc = smp_call_function(rtmpLinuxWrapper, &Args, 0 /* retry */, 1 /* wait */); 223 222 local_irq_disable(); 224 223 rtmpLinuxWrapper(&Args); 225 224 local_irq_enable(); 226 # ifdef preempt_enable 227 preempt_enable(); 228 # endif 225 RTThreadPreemptRestore(&PreemptState); 229 226 #endif /* older kernels */ 230 227 Assert(rc == 0); NOREF(rc); … … 239 236 RTMPARGS Args; 240 237 238 RTTHREADPREEMPTSTATE PreemptState = RTTHREADPREEMPTSTATE_INITIALIZER; 241 239 Args.pfnWorker = pfnWorker; 242 240 Args.pvUser1 = pvUser1; … … 245 243 Args.cHits = 0; 246 244 247 #ifdef preempt_disable 248 preempt_disable(); 249 #endif 245 RTThreadPreemptDisable(&PreemptState); 250 246 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27) 251 247 rc = smp_call_function(rtmpLinuxWrapper, &Args, 1 /* wait */); … … 253 249 rc = smp_call_function(rtmpLinuxWrapper, &Args, 0 /* retry */, 1 /* wait */); 254 250 #endif /* older kernels */ 255 #ifdef preempt_enable 256 preempt_enable(); 257 #endif 251 RTThreadPreemptRestore(&PreemptState); 258 252 259 253 Assert(rc == 0); NOREF(rc);
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器