aboutsummaryrefslogtreecommitdiffstats
path: root/litmus/domain.c
blob: 4dc3649a03896c7c33ea00507cce1af9cdefe7bc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#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,
		 preempt_needed_t preempt_needed,
		 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->preempt_needed = preempt_needed;
	dom->higher_prio = priority;
}