Changeset 4760793 in mainline for kernel/generic/src/interrupt/interrupt.c
- Timestamp:
- 2024-01-14T18:23:40Z (4 months ago)
- Branches:
- master
- Children:
- 5663872, c7ceacf
- Parents:
- 3b68542
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/interrupt/interrupt.c
r3b68542 r4760793 121 121 122 122 /* Account CPU usage if it woke up from sleep */ 123 if (CPU && CPU ->idle) {123 if (CPU && CPU_LOCAL->idle) { 124 124 uint64_t now = get_cycle(); 125 atomic_time_increment(&CPU->idle_cycles, now - CPU ->last_cycle);126 CPU ->last_cycle = now;127 CPU ->idle = false;125 atomic_time_increment(&CPU->idle_cycles, now - CPU_LOCAL->last_cycle); 126 CPU_LOCAL->last_cycle = now; 127 CPU_LOCAL->idle = false; 128 128 } 129 129
Note:
See TracChangeset
for help on using the changeset viewer.