Changeset fc10e1b in mainline for kernel/generic/src/sysinfo/stats.c
- Timestamp:
- 2018-09-07T16:34:11Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d2c91ab
- Parents:
- 508b0df1 (diff), e90cfa6 (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/sysinfo/stats.c
r508b0df1 rfc10e1b 239 239 stats_task->virtmem = get_task_virtmem(task->as); 240 240 stats_task->resmem = get_task_resmem(task->as); 241 stats_task->threads = atomic_ get(&task->refcount);241 stats_task->threads = atomic_load(&task->refcount); 242 242 task_get_accounting(task, &(stats_task->ucycles), 243 243 &(stats_task->kcycles)); … … 764 764 * 765 765 */ 766 static inline load_t load_calc(load_t load, load_t exp, atomic_count_t ready)766 static inline load_t load_calc(load_t load, load_t exp, size_t ready) 767 767 { 768 768 load *= exp; … … 784 784 785 785 while (true) { 786 atomic_count_t ready = atomic_get(&nrdy);786 size_t ready = atomic_load(&nrdy); 787 787 788 788 /* Mutually exclude with get_stats_load() */
Note:
See TracChangeset
for help on using the changeset viewer.