blob: 54c060d4c8af9bf4d0d8dabb00ec9512bb39c7da (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#include <linux/list.h>
#include <linux/spinlock_types.h>
#include <litmus/domain.h>
void domain_init(domain_t *dom,
raw_spinlock_t *lock,
requeue_t requeue,
peek_ready_t peek_ready,
take_ready_t take_ready,
task_prio_t priority)
{
INIT_LIST_HEAD(&dom->list);
dom->lock = lock;
dom->requeue = requeue;
dom->peek_ready = peek_ready;
dom->take_ready = take_ready;
dom->higher_prio = priority;
}
|