Changeset b2ec5cf in mainline for kernel/generic/src/interrupt/interrupt.c
- Timestamp:
- 2023-04-15T16:47:54Z (17 months ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 169815e
- Parents:
- dd218ea
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2023-04-15 11:54:58)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2023-04-15 16:47:54)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/interrupt/interrupt.c
rdd218ea rb2ec5cf 116 116 irq_spinlock_lock(&CPU->lock, false); 117 117 uint64_t now = get_cycle(); 118 CPU->idle_cycles += now - CPU->last_cycle;118 atomic_time_increment(&CPU->idle_cycles, now - CPU->last_cycle); 119 119 CPU->last_cycle = now; 120 120 CPU->idle = false;
Note:
See TracChangeset
for help on using the changeset viewer.