Contents of /trunk/kernel26-magellan/patches-2.6.20-r2/0009-2.6.20-sched-make_softirqd_batch.patch
Parent Directory | Revision Log
Revision 108 -
(show annotations)
(download)
Mon Mar 12 00:20:28 2007 UTC (17 years, 6 months ago) by niro
File size: 1040 byte(s)
Mon Mar 12 00:20:28 2007 UTC (17 years, 6 months ago) by niro
File size: 1040 byte(s)
ver bump to 2.6.20-r2; - using linux-2.6.20.2 - 2.6.20-ck1 patch set - 8.34.8 ati-drivers - 1.0-9755 nvidia-drivers - 1.2.0 ipw-drivers - squashfs-3.0 support - vesafb-tng 1.0-rc2 - fbsplash-0.9.2-r5 for linux-2.6.20-rc6 - removed zd1211 drivers (now in upstream tree) - disabled paravirt_ops for sake of non gpl video drivers
1 | Instead of 'nice'ing ksoftirqd we can use the policy hint of SCHED_BATCH which |
2 | specifies it as not requiring low latency. This increases the cpu use possible |
3 | under very heavy softirq traffic (such as network loads) and decreases the |
4 | latency that might otherwise be seen (such as keyboard input under heavy cpu |
5 | load on slow machines). |
6 | |
7 | Signed-off-by: Con Kolivas <kernel@kolivas.org> |
8 | |
9 | --- |
10 | kernel/softirq.c | 4 +++- |
11 | 1 file changed, 3 insertions(+), 1 deletion(-) |
12 | |
13 | Index: linux-2.6.20-ck1/kernel/softirq.c |
14 | =================================================================== |
15 | --- linux-2.6.20-ck1.orig/kernel/softirq.c 2007-02-05 22:52:04.000000000 +1100 |
16 | +++ linux-2.6.20-ck1/kernel/softirq.c 2007-02-16 19:01:31.000000000 +1100 |
17 | @@ -469,7 +469,9 @@ void __init softirq_init(void) |
18 | |
19 | static int ksoftirqd(void * __bind_cpu) |
20 | { |
21 | - set_user_nice(current, 19); |
22 | + struct sched_param param = { .sched_priority = 0 }; |
23 | + |
24 | + sched_setscheduler(current, SCHED_BATCH, ¶m); |
25 | current->flags |= PF_NOFREEZE; |
26 | |
27 | set_current_state(TASK_INTERRUPTIBLE); |