From 5d7dcfa10ea0dd283773a301e3ce610a7797d582 Mon Sep 17 00:00:00 2001 From: Glenn Elliott Date: Wed, 11 Jan 2012 14:37:13 -0500 Subject: PAI implementation, C-RM, C-FIFO. --- include/litmus/rm_srt_common.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 include/litmus/rm_srt_common.h (limited to 'include/litmus/rm_srt_common.h') diff --git a/include/litmus/rm_srt_common.h b/include/litmus/rm_srt_common.h new file mode 100644 index 000000000000..78aa287327a2 --- /dev/null +++ b/include/litmus/rm_srt_common.h @@ -0,0 +1,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 + +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 -- cgit v1.2.2