Changeset 9dae191e in mainline for kernel/generic/src/main/kinit.c


Ignore:
Timestamp:
2010-04-18T00:24:40Z (14 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a80687e5
Parents:
d8e3467
Message:

sysinfo API cleanup

  • better support for generated subtrees
  • synchronization
  • memory management (generated items cleanup)
  • simplier sysinfo_dump()

remove separate statistical syscalls, replace with virtual sysinfo items (some functionality is still missing)

  • naming consolidation
  • cleaner API
  • proper synchronization

minor renames

  • zone_print_list() → zones_print_list()
  • zone_busy_and_free() → zones_stats()
File:
1 edited

Legend:

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

    rd8e3467 r9dae191e  
    6767#include <debug.h>
    6868#include <str.h>
    69 #include <ps/load.h>
     69#include <sysinfo/stats.h>
    7070
    7171#ifdef CONFIG_SMP
     
    123123                } else
    124124                        panic("Unable to create kmp thread.");
     125               
    125126                thread_join(thread);
    126127                thread_detach(thread);
     
    151152        arch_post_smp_init();
    152153       
     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");
     160       
    153161#ifdef CONFIG_KCONSOLE
    154162        if (stdin) {
     
    164172#endif /* CONFIG_KCONSOLE */
    165173       
    166         /* Start thread computing system load */
    167         thread = thread_create(kload_thread, NULL, TASK, 0, "kload", false);
    168         if (thread != NULL)
    169                 thread_ready(thread);
    170         else
    171                 printf("Unable to create kload thread\n");
    172 
    173174        interrupts_enable();
    174175       
Note: See TracChangeset for help on using the changeset viewer.