aboutsummaryrefslogtreecommitdiffstats
path: root/include/litmus/sched_mc.h
blob: 941a9f4470cc3f288e53c336e63fc8f6de2207c1 (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
32
33
34
35
36
#ifndef _LINUX_SCHED_MC_H_
#define _LINUX_SCHED_MC_H_

#include <litmus/rt_param.h>

/* criticality levels */
enum crit_level {
	/* probably don't need to assign these (paranoid) */
	CRIT_LEVEL_A = 0,
	CRIT_LEVEL_B = 1,
	CRIT_LEVEL_C = 2,
	CRIT_LEVEL_D = 3,
	NUM_CRIT_LEVELS = 4,
};


struct mc_task {
	enum crit_level crit;
};

struct mc_job {
	int is_ghost:1;
	lt_t ghost_budget;
};

#ifdef __KERNEL__
/* only used in the kernel (no user space) */

struct mc_data {
	struct mc_task mc_task;
	struct mc_job mc_job;
};

#endif /* __KERNEL__ */

#endif