Changeset 201abde in mainline for kernel/generic/src/proc/scheduler.c


Ignore:
Timestamp:
2007-04-07T20:06:52Z (18 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7e58979
Parents:
6adbe3c2
Message:

make thread ID 64 bit (task ID is 64 bit already)
cleanup thread syscalls

File:
1 edited

Legend:

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

    r6adbe3c2 r201abde  
    451451                         * Entering state is unexpected.
    452452                         */
    453                         panic("tid%d: unexpected state %s\n", THREAD->tid,
     453                        panic("tid%llu: unexpected state %s\n", THREAD->tid,
    454454                                thread_states[THREAD->state]);
    455455                        break;
     
    504504
    505505#ifdef SCHEDULER_VERBOSE
    506         printf("cpu%d: tid %d (priority=%d, ticks=%lld, nrdy=%ld)\n",
     506        printf("cpu%d: tid %llu (priority=%d, ticks=%llu, nrdy=%ld)\n",
    507507            CPU->id, THREAD->tid, THREAD->priority, THREAD->ticks,
    508508            atomic_get(&CPU->nrdy));
     
    640640                                spinlock_lock(&t->lock);
    641641#ifdef KCPULB_VERBOSE
    642                                 printf("kcpulb%d: TID %d -> cpu%d, nrdy=%ld, "
     642                                printf("kcpulb%d: TID %llu -> cpu%d, nrdy=%ld, "
    643643                                    "avg=%nd\n", CPU->id, t->tid, CPU->id,
    644644                                    atomic_get(&CPU->nrdy),
     
    723723                                cur = cur->next) {
    724724                                t = list_get_instance(cur, thread_t, rq_link);
    725                                 printf("%d(%s) ", t->tid,
     725                                printf("%llu(%s) ", t->tid,
    726726                                    thread_states[t->state]);
    727727                        }
Note: See TracChangeset for help on using the changeset viewer.