Changeset dc5c303 in mainline for kernel/generic/src/sysinfo/stats.c
- Timestamp:
- 2023-12-28T13:59:23Z (15 months ago)
- Children:
- 6b66de6b
- Parents:
- 42c2e65 (diff), f87ff8e (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:
- boba-buba <120932204+boba-buba@…> (2023-12-28 13:59:23)
- git-committer:
- GitHub <noreply@…> (2023-12-28 13:59:23)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/sysinfo/stats.c
r42c2e65 rdc5c303 119 119 size_t i; 120 120 for (i = 0; i < config.cpu_count; i++) { 121 irq_spinlock_lock(&cpus[i].lock, true);122 123 121 stats_cpus[i].id = cpus[i].id; 124 122 stats_cpus[i].active = cpus[i].active; 125 123 stats_cpus[i].frequency_mhz = cpus[i].frequency_mhz; 126 stats_cpus[i].busy_cycles = cpus[i].busy_cycles; 127 stats_cpus[i].idle_cycles = cpus[i].idle_cycles; 128 129 irq_spinlock_unlock(&cpus[i].lock, true); 124 125 stats_cpus[i].busy_cycles = atomic_time_read(&cpus[i].busy_cycles); 126 stats_cpus[i].idle_cycles = atomic_time_read(&cpus[i].idle_cycles); 130 127 } 131 128
Note:
See TracChangeset
for help on using the changeset viewer.