aboutsummaryrefslogblamecommitdiffstats
path: root/include/litmus/edf_common.h
blob: 80d4321cc87ed8388acc43d377f6e593f3782eef (plain) (tree)



















                                                                     
                                                                





                                                                  
/*
 * EDF common data structures and utility functions shared by all EDF
 * based scheduler plugins
 */

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

#ifndef __UNC_EDF_COMMON_H__
#define __UNC_EDF_COMMON_H__

#include <litmus/rt_domain.h>

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

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

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

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

int edf_set_hp_task(struct pi_semaphore *sem);
int edf_set_hp_cpu_task(struct pi_semaphore *sem, int cpu);
#endif