Changeset 29e7cc7 in mainline for kernel/generic/src/sysinfo/stats.c


Ignore:
Timestamp:
2025-04-18T15:14:10Z (2 months ago)
Author:
Miroslav Cimerman <mc@…>
Children:
e77c3ed
Parents:
800d188 (diff), 25fdb2d (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.
Message:

Merge branch 'upstream/master' into helenraid

File:
1 edited

Legend:

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

    r800d188 r29e7cc7  
    9090
    9191/** Load calculation lock */
    92 static mutex_t load_lock;
     92static MUTEX_INITIALIZE(load_lock, MUTEX_PASSIVE);
    9393
    9494/** Get statistics of all CPUs
     
    846846void stats_init(void)
    847847{
    848         mutex_initialize(&load_lock, MUTEX_PASSIVE);
    849 
    850848        sysinfo_set_item_gen_data("system.cpus", NULL, get_stats_cpus, NULL);
    851849        sysinfo_set_item_gen_data("system.physmem", NULL, get_stats_physmem, NULL);
Note: See TracChangeset for help on using the changeset viewer.