Changeset 91a8f83 in mainline for kernel/generic/src/proc/scheduler.c


Ignore:
Timestamp:
2018-10-31T18:15:56Z (5 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Children:
071cb36
Parents:
482f968
Message:

Rename THE/the_t to CURRENT/current_t

Because the word "THE" occurs several times in every licence
header, searching for occurences of "THE" macro is more difficult
than necessary.

While I appreciate the wit of it, using a nonconflicting word
for it is more practical.

File:
1 edited

Legend:

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

    r482f968 r91a8f83  
    363363
    364364        /*
    365          * Through the 'THE' structure, we keep track of THREAD, TASK, CPU, AS
    366          * and preemption counter. At this point THE could be coming either
     365         * Through the 'CURRENT' structure, we keep track of THREAD, TASK, CPU, AS
     366         * and preemption counter. At this point CURRENT could be coming either
    367367         * from THREAD's or CPU's stack.
    368368         *
    369369         */
    370         the_copy(THE, (the_t *) CPU->stack);
     370        current_copy(CURRENT, (current_t *) CPU->stack);
    371371
    372372        /*
     
    548548         * thread's stack.
    549549         */
    550         the_copy(THE, (the_t *) THREAD->kstack);
     550        current_copy(CURRENT, (current_t *) THREAD->kstack);
    551551
    552552        context_restore(&THREAD->saved_context);
Note: See TracChangeset for help on using the changeset viewer.