Changeset 6f4495f5 in mainline for kernel/generic/src/proc/scheduler.c
- Timestamp:
- 2007-01-27T17:32:13Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1ba41c5
- Parents:
- 51baa8a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/proc/scheduler.c
r51baa8a r6f4495f5 361 361 context_save(&CPU->saved_context); 362 362 context_set(&CPU->saved_context, FADDR(scheduler_separated_stack), 363 363 (uintptr_t) CPU->stack, CPU_STACK_SIZE); 364 364 context_restore(&CPU->saved_context); 365 365 /* not reached */ … … 501 501 #ifdef SCHEDULER_VERBOSE 502 502 printf("cpu%d: tid %d (priority=%d, ticks=%lld, nrdy=%ld)\n", 503 504 503 CPU->id, THREAD->tid, THREAD->priority, THREAD->ticks, 504 atomic_get(&CPU->nrdy)); 505 505 #endif 506 506 … … 636 636 #ifdef KCPULB_VERBOSE 637 637 printf("kcpulb%d: TID %d -> cpu%d, nrdy=%ld, " 638 639 640 638 "avg=%nd\n", CPU->id, t->tid, CPU->id, 639 atomic_get(&CPU->nrdy), 640 atomic_get(&nrdy) / config.cpu_active); 641 641 #endif 642 642 t->flags |= THREAD_FLAG_STOLEN; … … 704 704 spinlock_lock(&cpus[cpu].lock); 705 705 printf("cpu%d: address=%p, nrdy=%ld, needs_relink=%ld\n", 706 707 706 cpus[cpu].id, &cpus[cpu], atomic_get(&cpus[cpu].nrdy), 707 cpus[cpu].needs_relink); 708 708 709 709 for (i = 0; i < RQ_COUNT; i++) { … … 719 719 t = list_get_instance(cur, thread_t, rq_link); 720 720 printf("%d(%s) ", t->tid, 721 721 thread_states[t->state]); 722 722 } 723 723 printf("\n");
Note:
See TracChangeset
for help on using the changeset viewer.