Changeset 057e77f in mainline for kernel/generic/src/time/clock.c
- Timestamp:
- 2012-07-16T15:31:56Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0cf813d
- Parents:
- 0594c7ea
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/time/clock.c
r0594c7ea r057e77f 212 212 irq_spinlock_unlock(&THREAD->lock, false); 213 213 214 if (ticks == 0) { 215 if (PREEMPTION_ENABLED) { 216 scheduler(); 214 if (ticks == 0 && PREEMPTION_ENABLED) { 215 scheduler(); 217 216 #ifdef CONFIG_UDEBUG 218 219 220 221 222 223 224 217 /* 218 * Give udebug chance to stop the thread 219 * before it begins executing userspace code. 220 */ 221 istate_t *istate = THREAD->udebug.uspace_state; 222 if ((istate) && (istate_from_uspace(istate))) 223 udebug_before_thread_runs(); 225 224 #endif 226 } else {227 preemption_set_needed();228 }229 225 } 230 226 }
Note:
See TracChangeset
for help on using the changeset viewer.