Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/proc/scheduler.c

    rb2fa1204 r6eef3c4  
    6161#include <cpu.h>
    6262#include <print.h>
    63 #include <log.h>
    6463#include <debug.h>
    6564#include <stacktrace.h>
     
    9392        else
    9493                fpu_disable();
    95 #elif defined CONFIG_FPU
     94#else
    9695        fpu_enable();
    9796        if (THREAD->fpu_context_exists)
     
    328327                THREAD->kcycles += get_cycle() - THREAD->last_cycle;
    329328               
    330 #if (defined CONFIG_FPU) && (!defined CONFIG_FPU_LAZY)
     329#ifndef CONFIG_FPU_LAZY
    331330                fpu_context_save(THREAD->saved_fpu_context);
    332331#endif
     
    518517       
    519518#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,
    523521            THREAD->ticks, atomic_get(&CPU->nrdy));
    524522#endif
     
    665663                               
    666664#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,
    670667                                    CPU->id, atomic_get(&CPU->nrdy),
    671668                                    atomic_get(&nrdy) / config.cpu_active);
     
    742739                       
    743740                        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);
    746744                                printf("%" PRIu64 "(%s) ", thread->tid,
    747745                                    thread_states[thread->state]);
Note: See TracChangeset for help on using the changeset viewer.