Changeset 8a64e81e in mainline for kernel/generic/src/main


Ignore:
Timestamp:
2012-07-06T13:31:02Z (13 years ago)
Author:
Adam Hraska <adam.hraska+hos@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0d56712
Parents:
518dd43
Message:

workq: Add work queues: allow blocking work items, queuing items from interrupt handlers.

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

Legend:

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

    r518dd43 r8a64e81e  
    7777#include <synch/waitq.h>
    7878#include <synch/spinlock.h>
     79#include <synch/workqueue.h>
    7980
    8081#define ALIVE_CHARS  4
     
    103104         */
    104105        thread_detach(THREAD);
    105        
     106
    106107        interrupts_disable();
     108       
     109        /*
     110         * Start processing work queue items. Some may have been queued during boot.
     111         */
     112        workq_global_worker_init();
    107113       
    108114#ifdef CONFIG_SMP
  • kernel/generic/src/main/main.c

    r518dd43 r8a64e81e  
    7575#include <synch/waitq.h>
    7676#include <synch/futex.h>
     77#include <synch/workqueue.h>
    7778#include <smp/smp_call.h>
    7879#include <arch/arch.h>
     
    249250
    250251        smp_call_init();
     252        workq_global_init();
    251253        clock_counter_init();
    252254        timeout_init();
Note: See TracChangeset for help on using the changeset viewer.