Changes in kernel/generic/src/time/clock.c [9dae191e:98000fb] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/time/clock.c
r9dae191e r98000fb 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 ASSERT(missed_clock_ticks == 0);143 CPU->idle_ticks++;144 } else {145 CPU->busy_ticks += missed_clock_ticks + 1;146 }147 CPU->idle = false;148 139 149 140 /*
Note:
See TracChangeset
for help on using the changeset viewer.