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