aboutsummaryrefslogtreecommitdiffstats
path: root/include/litmus/rm_srt_common.h
blob: 78aa287327a2676ff0ea284d2d6252838a0e418e (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
/*
 * EDF common data structures and utility functions shared by all EDF
 * based scheduler plugins
 */

/* CLEANUP: Add comments and make it less messy.
 *
 */

#ifndef __UNC_RM_SRT_COMMON_H__
#define __UNC_RM_SRT_COMMON_H__

#include <litmus/rt_domain.h>

void rm_srt_domain_init(rt_domain_t* rt, check_resched_needed_t resched,
		     release_jobs_t release);

int rm_srt_higher_prio(struct task_struct* first,
		    struct task_struct* second);

int rm_srt_ready_order(struct bheap_node* a, struct bheap_node* b);

int rm_srt_preemption_needed(rt_domain_t* rt, struct task_struct *t);

#endif