Magellan Linux

Annotation of /trunk/kernel26-magellan/patches-2.6.16-r3/0013-2.6.16-iso_idleprio_ionice.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 70 - (hide annotations) (download)
Thu May 11 19:09:22 2006 UTC (18 years ago) by niro
File size: 724 byte(s)
import

1 niro 70 include/linux/ioprio.h | 8 +++++++-
2     1 files changed, 7 insertions(+), 1 deletion(-)
3    
4     Index: linux-2.6.16-ck1/include/linux/ioprio.h
5     ===================================================================
6     --- linux-2.6.16-ck1.orig/include/linux/ioprio.h 2006-03-20 20:46:25.000000000 +1100
7     +++ linux-2.6.16-ck1/include/linux/ioprio.h 2006-03-20 20:46:52.000000000 +1100
8     @@ -53,7 +53,13 @@ static inline int task_ioprio(struct tas
9    
10     static inline int task_nice_ioprio(struct task_struct *task)
11     {
12     - return (task_nice(task) + 20) / 5;
13     + int effective_nice = task_nice(task);
14     +
15     + if (idleprio_task(task))
16     + effective_nice = 19;
17     + else if (iso_task(task))
18     + effective_nice = -20;
19     + return (effective_nice + 20) / 5;
20     }
21    
22     /*