Subversion Repositories HelenOS

Rev

Rev 1007 | Rev 1086 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1007 Rev 1062
Line 615... Line 615...
615
    link_t *cur;
615
    link_t *cur;
616
 
616
 
617
    /* We are going to mess with scheduler structures,
617
    /* We are going to mess with scheduler structures,
618
     * let's not be interrupted */
618
     * let's not be interrupted */
619
    ipl = interrupts_disable();
619
    ipl = interrupts_disable();
620
    printf("Scheduler dump:\n");
-
 
621
    for (cpu=0;cpu < config.cpu_count; cpu++) {
620
    for (cpu=0;cpu < config.cpu_count; cpu++) {
622
 
621
 
623
        if (!cpus[cpu].active)
622
        if (!cpus[cpu].active)
624
            continue;
623
            continue;
625
 
624
 
626
        spinlock_lock(&cpus[cpu].lock);
625
        spinlock_lock(&cpus[cpu].lock);
627
        printf("cpu%d: nrdy: %d, needs_relink: %d\n",
626
        printf("cpu%d: address=%P, nrdy=%d, needs_relink=%d\n",
628
               cpus[cpu].id, atomic_get(&cpus[cpu].nrdy), cpus[cpu].needs_relink);
627
               cpus[cpu].id, &cpus[cpu], atomic_get(&cpus[cpu].nrdy), cpus[cpu].needs_relink);
629
       
628
       
630
        for (i=0; i<RQ_COUNT; i++) {
629
        for (i=0; i<RQ_COUNT; i++) {
631
            r = &cpus[cpu].rq[i];
630
            r = &cpus[cpu].rq[i];
632
            spinlock_lock(&r->lock);
631
            spinlock_lock(&r->lock);
633
            if (!r->n) {
632
            if (!r->n) {