Changeset d0c82c5 in mainline for kernel/generic/src/cpu/cpu.c


Ignore:
Timestamp:
2010-06-16T19:44:53Z (14 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5387807
Parents:
5954241
Message:

perfect CPU cycles accounting, cherry-picked and adopted from lp:~ersin/helenos/measure2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/cpu/cpu.c

    r5954241 rd0c82c5  
    4949#include <print.h>
    5050#include <sysinfo/sysinfo.h>
     51#include <arch/cycle.h>
    5152
    5253cpu_t *cpus;
     
    9495        CPU->tlb_active = true;
    9596       
     97        CPU->idle = false;
     98        CPU->last_cycle = get_cycle();
     99        CPU->idle_cycles = 0;
     100        CPU->busy_cycles = 0;
     101       
    96102        cpu_identify();
    97103        cpu_arch_init();
Note: See TracChangeset for help on using the changeset viewer.