Changeset dc5c303 in mainline for kernel/generic/src/time/clock.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/time/clock.c
r42c2e65 rdc5c303 123 123 static void cpu_update_accounting(void) 124 124 { 125 irq_spinlock_lock(&CPU->lock, false);126 125 uint64_t now = get_cycle(); 127 CPU->busy_cycles += now - CPU->last_cycle;126 atomic_time_increment(&CPU->busy_cycles, now - CPU->last_cycle); 128 127 CPU->last_cycle = now; 129 irq_spinlock_unlock(&CPU->lock, false);130 128 } 131 129
Note:
See TracChangeset
for help on using the changeset viewer.