Changeset 88dea9d in mainline for kernel/generic/src/cpu/cpu.c


Ignore:
Timestamp:
2010-04-17T16:28:49Z (14 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
30a5470
Parents:
5ba201d (diff), 95319bd (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

merge from measuring branch

File:
1 edited

Legend:

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

    r5ba201d r88dea9d  
    4848#include <adt/list.h>
    4949#include <print.h>
     50#include <sysinfo/sysinfo.h>
    5051
    5152cpu_t *cpus;
     
    7475                       
    7576                        cpus[i].id = i;
     77                        cpus[i].idle_ticks = 0;
     78                        cpus[i].busy_ticks = 0;
    7679                       
    7780                        spinlock_initialize(&cpus[i].lock, "cpu_t.lock");
     
    9497        cpu_identify();
    9598        cpu_arch_init();
     99
     100        sysinfo_set_item_val("cpu.count", NULL, config.cpu_count);
    96101}
    97102
Note: See TracChangeset for help on using the changeset viewer.