Changes in kernel/generic/src/time/clock.c [98000fb:2e4e706] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/time/clock.c
r98000fb r2e4e706 86 86 uptime->seconds1 = 0; 87 87 uptime->seconds2 = 0; 88 uptime->useconds = 0; 88 uptime->useconds = 0; 89 89 90 90 clock_parea.pbase = (uintptr_t) faddr; … … 137 137 size_t missed_clock_ticks = CPU->missed_clock_ticks; 138 138 unsigned int i; 139 140 /* Account lost ticks to CPU usage */ 141 if (CPU->idle) { 142 CPU->idle_ticks += missed_clock_ticks + 1; 143 } else { 144 CPU->busy_ticks += missed_clock_ticks + 1; 145 } 146 CPU->idle = false; 139 147 140 148 /* … … 187 195 spinlock_unlock(&THREAD->lock); 188 196 189 if ( !ticks && !PREEMPTION_DISABLED) {197 if ((!ticks) && (!PREEMPTION_DISABLED)) { 190 198 #ifdef CONFIG_UDEBUG 191 199 istate_t *istate;
Note:
See TracChangeset
for help on using the changeset viewer.