Changeset f4f866c in mainline for kernel/generic/src/main


Ignore:
Timestamp:
2010-04-23T21:42:26Z (16 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6c39a907
Parents:
38aaacc2 (diff), 80badbe (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 mainline changes.

Location:
kernel/generic/src/main
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/main/kinit.c

    r38aaacc2 rf4f866c  
    6767#include <debug.h>
    6868#include <str.h>
     69#include <sysinfo/stats.h>
    6970
    7071#ifdef CONFIG_SMP
     
    122123                } else
    123124                        panic("Unable to create kmp thread.");
     125               
    124126                thread_join(thread);
    125127                thread_detach(thread);
     
    149151         */
    150152        arch_post_smp_init();
     153       
     154        /* Start thread computing system load */
     155        thread = thread_create(kload, NULL, TASK, 0, "kload", false);
     156        if (thread != NULL)
     157                thread_ready(thread);
     158        else
     159                printf("Unable to create kload thread\n");
    151160       
    152161#ifdef CONFIG_KCONSOLE
  • kernel/generic/src/main/main.c

    r38aaacc2 rf4f866c  
    8484#include <main/main.h>
    8585#include <ipc/event.h>
     86#include <sysinfo/sysinfo.h>
     87#include <sysinfo/stats.h>
    8688
    8789/** Global configuration structure. */
     
    209211        /* Initialize at least 1 memory segment big enough for slab to work. */
    210212        LOG_EXEC(slab_cache_init());
     213        LOG_EXEC(sysinfo_init());
    211214        LOG_EXEC(btree_init());
    212215        LOG_EXEC(as_init());
     
    223226       
    224227        printf("Detected %" PRIs " CPU(s), %" PRIu64" MiB free memory\n",
    225             config.cpu_count, SIZE2MB(zone_total_size()));
    226        
     228            config.cpu_count, SIZE2MB(zones_total_size()));
     229
    227230        LOG_EXEC(cpu_init());
    228231       
     
    247250        LOG_EXEC(event_init());
    248251        LOG_EXEC(klog_init());
     252        LOG_EXEC(stats_init());
    249253       
    250254        /*
  • kernel/generic/src/main/version.c

    r38aaacc2 rf4f866c  
    5959{
    6060        printf("%s, release %s (%s)%s\nBuilt%s for %s\n%s\n",
    61                 project, release, name, revision, timestamp, arch, copyright);
     61            project, release, name, revision, timestamp, arch, copyright);
    6262}
    6363
Note: See TracChangeset for help on using the changeset viewer.