Changes in kernel/generic/src/proc/scheduler.c [1558d85:e1326cf] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/proc/scheduler.c
r1558d85 re1326cf 52 52 #include <atomic.h> 53 53 #include <synch/spinlock.h> 54 #include <synch/workqueue.h>55 #include <synch/rcu.h>56 54 #include <config.h> 57 55 #include <context.h> … … 63 61 #include <cpu.h> 64 62 #include <print.h> 65 #include <log.h>66 63 #include <debug.h> 67 64 #include <stacktrace.h> … … 89 86 { 90 87 before_thread_runs_arch(); 91 rcu_before_thread_runs();92 88 93 89 #ifdef CONFIG_FPU_LAZY … … 130 126 static void after_thread_ran(void) 131 127 { 132 workq_after_thread_ran();133 rcu_after_thread_ran();134 128 after_thread_ran_arch(); 135 129 } … … 224 218 goto loop; 225 219 } 226 227 ASSERT(!CPU->idle);228 220 229 221 unsigned int i; … … 405 397 ASSERT((!THREAD) || (irq_spinlock_locked(&THREAD->lock))); 406 398 ASSERT(CPU != NULL); 407 ASSERT(interrupts_disabled());408 399 409 400 /* … … 429 420 430 421 case Exiting: 431 rcu_thread_exiting();432 422 repeat: 433 423 if (THREAD->detached) { … … 527 517 528 518 #ifdef SCHEDULER_VERBOSE 529 log(LF_OTHER, LVL_DEBUG, 530 "cpu%u: tid %" PRIu64 " (priority=%d, ticks=%" PRIu64 531 ", nrdy=%" PRIua ")", CPU->id, THREAD->tid, THREAD->priority, 519 printf("cpu%u: tid %" PRIu64 " (priority=%d, ticks=%" PRIu64 520 ", nrdy=%ld)\n", CPU->id, THREAD->tid, THREAD->priority, 532 521 THREAD->ticks, atomic_get(&CPU->nrdy)); 533 522 #endif … … 674 663 675 664 #ifdef KCPULB_VERBOSE 676 log(LF_OTHER, LVL_DEBUG, 677 "kcpulb%u: TID %" PRIu64 " -> cpu%u, " 678 "nrdy=%ld, avg=%ld", CPU->id, t->tid, 665 printf("kcpulb%u: TID %" PRIu64 " -> cpu%u, " 666 "nrdy=%ld, avg=%ld\n", CPU->id, t->tid, 679 667 CPU->id, atomic_get(&CPU->nrdy), 680 668 atomic_get(&nrdy) / config.cpu_active); … … 751 739 752 740 printf("\trq[%u]: ", i); 753 list_foreach(cpus[cpu].rq[i].rq, rq_link, thread_t, 754 thread) { 741 list_foreach(cpus[cpu].rq[i].rq, cur) { 742 thread_t *thread = list_get_instance(cur, 743 thread_t, rq_link); 755 744 printf("%" PRIu64 "(%s) ", thread->tid, 756 745 thread_states[thread->state]);
Note:
See TracChangeset
for help on using the changeset viewer.