Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/time/clock.c

    r169815e rba25c4b  
    123123static void cpu_update_accounting(void)
    124124{
     125        irq_spinlock_lock(&CPU->lock, false);
    125126        uint64_t now = get_cycle();
    126         atomic_time_increment(&CPU->busy_cycles, now - CPU->last_cycle);
     127        CPU->busy_cycles += now - CPU->last_cycle;
    127128        CPU->last_cycle = now;
     129        irq_spinlock_unlock(&CPU->lock, false);
    128130}
    129131
Note: See TracChangeset for help on using the changeset viewer.