Changeset 48462 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- Sep 12, 2013 10:35:34 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/linux/thread-r0drv-linux.c
r44528 r48462 88 88 yield(); 89 89 #else 90 /** @todo r=ramshankar: Can we use cond_resched() instead? */ 90 91 set_current_state(TASK_RUNNING); 91 92 sys_sched_yield(); … … 160 161 RTDECL(bool) RTThreadPreemptIsPossible(void) 161 162 { 163 /** @todo r=ramshankar: What about CONFIG_PREEMPT_VOLUNTARY? That can preempt 164 * too but does so in voluntarily in explicit preemption points. */ 162 165 #ifdef CONFIG_PREEMPT 163 166 return true; /* yes, kernel preemption is possible. */ … … 175 178 Assert(pState->u32Reserved == 0); 176 179 pState->u32Reserved = 42; 180 /* This ASSUMES that CONFIG_PREEMPT_COUNT is always defined with CONFIG_PREEMPT. */ 177 181 preempt_disable(); 178 182 RT_ASSERT_PREEMPT_CPUID_DISABLE(pState);
Note:
See TracChangeset
for help on using the changeset viewer.