From b53c479a0f44b8990ce106622412a3bf54809944 Mon Sep 17 00:00:00 2001 From: Glenn Elliott Date: Mon, 16 Jul 2012 20:20:52 -0400 Subject: New Feature: Arbitrary deadlines. Added support for arbitrary deadlines. Constraint: Relative deadline must be >= exec cost. Use: Set relative deadline in rt_task::rdeadline. Set value to 0 to default to implicit deadlines. Limitations: PFAIR not supported by this patch. PFAIR updated to reject tasks that do not have implicit deadlines. --- litmus/sched_pfair.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'litmus/sched_pfair.c') diff --git a/litmus/sched_pfair.c b/litmus/sched_pfair.c index 16f1065bbdca..72c06a492ef9 100644 --- a/litmus/sched_pfair.c +++ b/litmus/sched_pfair.c @@ -850,6 +850,13 @@ static long pfair_admit_task(struct task_struct* t) cpu_cluster(pstate[task_cpu(t)])) return -EINVAL; + if (get_rt_period(t) != get_rt_relative_deadline(t)) { + printk(KERN_INFO "%s: Admission rejected. " + "Only implicit deadlines are currently supported.\n", + litmus->plugin_name); + return -EINVAL; + } + /* Pfair is a tick-based method, so the time * of interest is jiffies. Calculate tick-based * times for everything. -- cgit v1.2.2