Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 3a10e34 in mainline


Ignore:
Timestamp:
2010-03-29T19:38:29Z (12 years ago)
Author:
Stanislav Kozina <stanislav.kozina@…>
Branches:
lfn, master
Children:
944f2cab
Parents:
ea55bc4
Message:

Added kload thread

Location:
kernel
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/Makefile

    rea55bc4 r3a10e34  
    230230        generic/src/security/cap.c \
    231231        generic/src/sysinfo/sysinfo.c \
    232         generic/src/ps/ps.c
     232        generic/src/ps/ps.c \
     233        generic/src/ps/load.c
    233234
    234235## Kernel console support
  • kernel/generic/src/main/kinit.c

    rea55bc4 r3a10e34  
    6767#include <debug.h>
    6868#include <str.h>
     69#include <ps/load.h>
    6970
    7071#ifdef CONFIG_SMP
     
    163164#endif /* CONFIG_KCONSOLE */
    164165       
     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
    165173        interrupts_enable();
    166174       
Note: See TracChangeset for help on using the changeset viewer.