aboutsummaryrefslogtreecommitdiffstats
path: root/litmus/rt_server.c
blob: 74d7c7b0f81a0e683ac50e3e0566465dee1c1c47 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <litmus/rt_server.h>

static void default_server_update(struct rt_server *srv)
{
}

void init_rt_server(struct rt_server *server,
		    int sid, int cpu, rt_domain_t *domain,
		    need_preempt_t need_preempt,
		    server_update_t update)
{
	if (!need_preempt)
		BUG_ON(1);

	server->need_preempt = need_preempt;
	server->update = (update) ? update : default_server_update;

	server->sid = sid;
	server->cpu = cpu;
	server->linked = NULL;
	server->domain = domain;
	server->running = 0;
}