Changeset 3d84734 in mainline for kernel/generic/src/sysinfo/stats.c


Ignore:
Timestamp:
2024-01-20T17:19:52Z (17 months ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master
Children:
41bfc64
Parents:
efed95a3
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2024-01-20 17:18:35)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2024-01-20 17:19:52)
Message:

Make thread→priority weakly atomic to avoid need for locking

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/sysinfo/stats.c

    refed95a3 r3d84734  
    304304        stats_thread->task_id = thread->task->taskid;
    305305        stats_thread->state = thread->state;
    306         stats_thread->priority = thread->priority;
     306        stats_thread->priority = atomic_get_unordered(&thread->priority);
    307307        stats_thread->ucycles = thread->ucycles;
    308308        stats_thread->kcycles = thread->kcycles;
Note: See TracChangeset for help on using the changeset viewer.