Changes in kernel/generic/src/proc/scheduler.c [ee42e43:2d3ddad] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/proc/scheduler.c
ree42e43 r2d3ddad 193 193 * This improves energy saving and hyperthreading. 194 194 */ 195 196 /* Mark CPU as it was idle this clock tick */ 195 197 irq_spinlock_lock(&CPU->lock, false); 196 198 CPU->idle = true; 197 199 irq_spinlock_unlock(&CPU->lock, false); 200 198 201 interrupts_enable(); 199 200 202 /* 201 203 * An interrupt might occur right now and wake up a thread. … … 384 386 as_t *old_as = AS; 385 387 386 ASSERT( (!THREAD) || (irq_spinlock_locked(&THREAD->lock)));388 ASSERT(!THREAD || irq_spinlock_locked(&THREAD->lock)); 387 389 ASSERT(CPU != NULL); 388 390 … … 455 457 irq_spinlock_unlock(&THREAD->sleep_queue->lock, false); 456 458 459 /* 460 * Check for possible requests for out-of-context 461 * invocation. 462 * 463 */ 464 if (THREAD->call_me) { 465 THREAD->call_me(THREAD->call_me_with); 466 THREAD->call_me = NULL; 467 THREAD->call_me_with = NULL; 468 } 469 457 470 irq_spinlock_unlock(&THREAD->lock, false); 471 458 472 break; 459 473
Note:
See TracChangeset
for help on using the changeset viewer.