Changeset 9f945464 in mainline for kernel/test/mm/slab2.c


Ignore:
Timestamp:
2025-04-09T16:36:30Z (6 days ago)
Author:
GitHub <noreply@…>
Children:
3acb63b5
Parents:
2c94501 (diff), 597fa24 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Wayne Thornton <wmthornton-dev@…> (2025-04-09 16:36:30)
git-committer:
GitHub <noreply@…> (2025-04-09 16:36:30)
Message:

Merge pull request #3 from HelenOS/master

Enable static initialization of kernel synchronization primitives

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/test/mm/slab2.c

    r2c94501 r9f945464  
    127127
    128128static slab_cache_t *thr_cache;
    129 static condvar_t thread_starter;
    130 static mutex_t starter_mutex;
     129static CONDVAR_INITIALIZE(thread_starter);
     130static MUTEX_INITIALIZE(starter_mutex, MUTEX_PASSIVE);
    131131
    132132#define THREADS  8
     
    197197
    198198        TPRINTF("Running stress test with size %d\n", size);
    199 
    200         condvar_initialize(&thread_starter);
    201         mutex_initialize(&starter_mutex, MUTEX_PASSIVE);
    202199
    203200        thr_cache = slab_cache_create("thread_cache", size, 0, NULL, NULL, 0);
Note: See TracChangeset for help on using the changeset viewer.