Index: linux-2.6.10-rc2-ck1/include/linux/sched.h
===================================================================
--- linux-2.6.10-rc2-ck1.orig/include/linux/sched.h	2004-11-15 20:33:36.000000000 +1100
+++ linux-2.6.10-rc2-ck1/include/linux/sched.h	2004-11-15 20:37:31.000000000 +1100
@@ -128,9 +128,10 @@ extern unsigned long nr_iowait(void);
 #define SCHED_FIFO		1
 #define SCHED_RR		2
 #define SCHED_BATCH		3
+#define SCHED_ISO		4
 
 #define SCHED_MIN		0
-#define SCHED_MAX		3
+#define SCHED_MAX		4
 
 #define SCHED_RANGE(policy)	((policy) >= SCHED_MIN && \
 					(policy) <= SCHED_MAX)
@@ -355,6 +356,7 @@ struct signal_struct {
 
 #define rt_task(p)		(unlikely((p)->prio < MAX_RT_PRIO))
 #define batch_task(p)		((p)->policy == SCHED_BATCH)
+#define iso_task(p)		((p)->policy == SCHED_ISO)
 
 /*
  * Some day this will be a full-fledged user tracking system..
Index: linux-2.6.10-rc2-ck1/kernel/sched.c
===================================================================
--- linux-2.6.10-rc2-ck1.orig/kernel/sched.c	2004-11-15 20:37:24.000000000 +1100
+++ linux-2.6.10-rc2-ck1/kernel/sched.c	2004-11-15 20:37:31.000000000 +1100
@@ -523,6 +523,8 @@ static unsigned int burst(task_t *p)
 {
 	if (likely(!rt_task(p))) {
 		unsigned int task_user_prio = TASK_USER_PRIO(p);
+		if (iso_task(p))
+			task_user_prio /= 2;
 		return 39 - task_user_prio;
 	} else
 		return p->burst;
@@ -549,6 +551,8 @@ static unsigned int rr_interval(task_t *
 
 	if (nice < 0 && !rt_task(p))
 		rr_interval += -(nice);
+	else if (iso_task(p))
+		rr_interval = rr_interval / 2 ? : 1;
 	return rr_interval;
 }
 
@@ -602,7 +606,7 @@ static int effective_prio(task_t *p)
 	if (p->burst > best_burst)
 		p->burst = best_burst;
 	first_slice = rr;
-	if (sched_interactive && !sched_compute && p->mm)
+	if (sched_interactive && !sched_compute && p->mm && !iso_task(p))
 		first_slice *= (p->burst + 1);
 	prio = MAX_PRIO - 2 - best_burst;
 
@@ -2880,7 +2884,11 @@ recheck:
 
 	retval = -EPERM;
 	if (SCHED_RT(policy) && !capable(CAP_SYS_NICE))
-		goto out_unlock;
+		/*
+		 * If the caller requested an RT policy without having the
+		 * necessary rights, we downgrade the policy to SCHED_ISO.
+		 */
+		policy = SCHED_ISO;
 	if ((current->euid != p->euid) && (current->euid != p->uid) &&
 	    !capable(CAP_SYS_NICE))
 		goto out_unlock;
@@ -3258,6 +3266,7 @@ asmlinkage long sys_sched_get_priority_m
 		break;
 	case SCHED_NORMAL:
 	case SCHED_BATCH:
+	case SCHED_ISO:
 		ret = 0;
 		break;
 	}
@@ -3282,6 +3291,7 @@ asmlinkage long sys_sched_get_priority_m
 		break;
 	case SCHED_NORMAL:
 	case SCHED_BATCH:
+	case SCHED_ISO:
 		ret = 0;
 	}
 	return ret;
