aboutsummaryrefslogtreecommitdiffstats
path: root/include/litmus/mc2_common.h
blob: e3c0af28f1b9b1a6d5e419abea37cd10f8302ba1 (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
24
25
26
27
28
29
30
31
/*
 * MC^2 common data structures
 */
 
#ifndef __UNC_MC2_COMMON_H__
#define __UNC_MC2_COMMON_H__

enum crit_level {
	CRIT_LEVEL_A = 0,
	CRIT_LEVEL_B = 1,
	CRIT_LEVEL_C = 2,
	NUM_CRIT_LEVELS = 3,
};

struct mc2_task {
	enum crit_level crit;
	unsigned int res_id;
};

#ifdef __KERNEL__

#include <litmus/reservation.h>

#define tsk_mc2_data(t)		(tsk_rt(t)->mc2_data)

long mc2_task_client_init(struct task_client *tc, struct mc2_task *mc2_param, struct task_struct *tsk,
							struct reservation *res);
	
#endif /* __KERNEL__ */

#endif