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


Ignore:
Timestamp:
2018-11-01T14:30:03Z (7 years ago)
Author:
GitHub <noreply@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d1da1ff2
Parents:
bab75df6
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-11-01 14:30:03)
git-committer:
GitHub <noreply@…> (2018-11-01 14:30:03)
Message:

Rename THE/the_t to CURRENT/current_t (#50)

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

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

File:
1 edited

Legend:

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

    rbab75df6 ra6e55886  
    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.