Changeset 62550dce in mainline for kernel/generic/src/cpu/cpu.c


Ignore:
Timestamp:
2010-04-01T21:31:25Z (14 years ago)
Author:
Stanislav Kozina <stanislav.kozina@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
dd6c71c
Parents:
79edc36
Message:

ps -c echoes info about CPU's
cpu count is accessible through sysinfo("cpu.count")

File:
1 edited

Legend:

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

    r79edc36 r62550dce  
    4848#include <adt/list.h>
    4949#include <print.h>
     50#include <sysinfo/sysinfo.h>
    5051
    5152cpu_t *cpus;
     
    9697        cpu_identify();
    9798        cpu_arch_init();
     99
     100        sysinfo_set_item_val("cpu.count", NULL, config.cpu_count);
    98101}
    99102
Note: See TracChangeset for help on using the changeset viewer.