Changes in kernel/generic/src/proc/scheduler.c [b2fa1204:6eef3c4] in mainline
- File:
-
- 1 edited
-
kernel/generic/src/proc/scheduler.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/proc/scheduler.c
rb2fa1204 r6eef3c4 61 61 #include <cpu.h> 62 62 #include <print.h> 63 #include <log.h>64 63 #include <debug.h> 65 64 #include <stacktrace.h> … … 93 92 else 94 93 fpu_disable(); 95 #el if defined CONFIG_FPU94 #else 96 95 fpu_enable(); 97 96 if (THREAD->fpu_context_exists) … … 328 327 THREAD->kcycles += get_cycle() - THREAD->last_cycle; 329 328 330 #if (defined CONFIG_FPU) && (!defined CONFIG_FPU_LAZY)329 #ifndef CONFIG_FPU_LAZY 331 330 fpu_context_save(THREAD->saved_fpu_context); 332 331 #endif … … 518 517 519 518 #ifdef SCHEDULER_VERBOSE 520 log(LF_OTHER, LVL_DEBUG, 521 "cpu%u: tid %" PRIu64 " (priority=%d, ticks=%" PRIu64 522 ", 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, 523 521 THREAD->ticks, atomic_get(&CPU->nrdy)); 524 522 #endif … … 665 663 666 664 #ifdef KCPULB_VERBOSE 667 log(LF_OTHER, LVL_DEBUG, 668 "kcpulb%u: TID %" PRIu64 " -> cpu%u, " 669 "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, 670 667 CPU->id, atomic_get(&CPU->nrdy), 671 668 atomic_get(&nrdy) / config.cpu_active); … … 742 739 743 740 printf("\trq[%u]: ", i); 744 list_foreach(cpus[cpu].rq[i].rq, rq_link, thread_t, 745 thread) { 741 list_foreach(cpus[cpu].rq[i].rq, cur) { 742 thread_t *thread = list_get_instance(cur, 743 thread_t, rq_link); 746 744 printf("%" PRIu64 "(%s) ", thread->tid, 747 745 thread_states[thread->state]);
Note:
See TracChangeset
for help on using the changeset viewer.
