Changeset 8996582 in mainline for kernel/generic/src/proc/thread.c


Ignore:
Timestamp:
2024-01-14T18:24:05Z (18 months ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master
Children:
151c050
Parents:
6e49dab
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2023-03-12 13:48:13)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2024-01-14 18:24:05)
Message:

Move context switch preparation to a new separate function

This puts everything that's needed before activating a new
thread into a single place, and removes one lock/unlock pair.

File:
1 edited

Legend:

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

    r6e49dab r8996582  
    121121        void (*f)(void *) = THREAD->thread_code;
    122122        void *arg = THREAD->thread_arg;
    123         THREAD->last_cycle = get_cycle();
    124123
    125124        /* This is where each thread wakes up after its creation */
Note: See TracChangeset for help on using the changeset viewer.