Changeset b584cd4 in mainline for kernel/generic/src/interrupt/interrupt.c
- Timestamp:
- 2010-06-11T23:56:16Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- fd3a631f
- Parents:
- 214ec25c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/interrupt/interrupt.c
r214ec25c rb584cd4 103 103 #endif 104 104 105 uint64_t begin_cycle = get_cycle();106 107 105 /* Account user cycles */ 108 106 if (THREAD) { 109 107 irq_spinlock_lock(&THREAD->lock, false); 110 THREAD->ucycles += begin_cycle - THREAD->last_cycle;108 thread_update_accounting(true); 111 109 irq_spinlock_unlock(&THREAD->lock, false); 112 110 } 111 112 uint64_t begin_cycle = get_cycle(); 113 113 114 114 #ifdef CONFIG_UDEBUG … … 130 130 /* Account exception handling */ 131 131 uint64_t end_cycle = get_cycle(); 132 132 133 exc_table[n].cycles += end_cycle - begin_cycle; 133 134 exc_table[n].count++;
Note:
See TracChangeset
for help on using the changeset viewer.