Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/synch/waitq.c

    r597fa24 rb169619  
    7070void waitq_initialize(waitq_t *wq)
    7171{
    72         *wq = WAITQ_INITIALIZER(*wq);
     72        memsetb(wq, sizeof(*wq), 0);
     73        irq_spinlock_initialize(&wq->lock, "wq.lock");
     74        list_initialize(&wq->sleepers);
    7375}
    7476
     
    7981void waitq_initialize_with_count(waitq_t *wq, int count)
    8082{
    81         *wq = WAITQ_INITIALIZER_WITH_COUNT(*wq, count);
     83        waitq_initialize(wq);
     84        wq->wakeup_balance = count;
    8285}
    8386
Note: See TracChangeset for help on using the changeset viewer.