Rebased patch to compile against BFS 0.330+
authorPeter Hunt <peter_j_hunt@hotmail.com>
Mon, 29 Aug 2011 09:28:05 +0000 (09:28 +0000)
committerPeter Hunt <peter_j_hunt@hotmail.com>
Mon, 29 Aug 2011 09:28:05 +0000 (09:28 +0000)
kernel-bfs-2.6.28/debian/patches/bfs/sched-add-above-background-load-function.patch

index 5163565..37df41e 100644 (file)
@@ -11,14 +11,14 @@ Index: linux-2.6.39-ck1/include/linux/sched.h
 ===================================================================
 --- linux-2.6.39-ck1.orig/include/linux/sched.h        2011-05-19 19:36:35.115273667 +1000
 +++ linux-2.6.39-ck1/include/linux/sched.h     2011-05-19 19:36:35.551273667 +1000
-@@ -1590,6 +1590,7 @@ static inline int iso_task(struct task_s
- {
-       return (p->policy == SCHED_ISO);
- }
+@@ -1409,6 +1409,7 @@ struct task_struct {
+ #define tsk_seruntime(t)              ((t)->sched_time)
+ #define tsk_rttimeout(t)              ((t)->rt_timeout)
+ #define task_rq_unlock_wait(tsk)      grq_unlock_wait()
 +extern int above_background_load(void);
- #else /* CFS */
- extern int runqueue_is_locked(int cpu);
- extern void task_rq_unlock_wait(struct task_struct *p);
+
+ static inline void set_oom_timeslice(struct task_struct *p)
+ {
 @@ -1620,6 +1621,12 @@ static inline int iso_task(struct task_s
  {
        return 0;