lkml.org 
[lkml]   [1998]   [Dec]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: idle task was __cliing the local CPU even if not needed
On Tue, 15 Dec 1998, Andrea Arcangeli wrote:

>With this patch applyed the idle task run schedule() only if need_resched
>is true. It seems that now under high IDE load my ppp link stopped to
>drop/[not send] packes as it was used to do.

Hug a little incremental fix to allow UP compile ;)

Index: linux/arch/i386/kernel/process.c
diff -u linux/arch/i386/kernel/process.c:1.1.1.1.2.17 linux/arch/i386/kernel/process.c:1.1.1.1.2.18
--- linux/arch/i386/kernel/process.c:1.1.1.1.2.17 Tue Dec 15 20:07:08 1998
+++ linux/arch/i386/kernel/process.c Tue Dec 15 21:07:49 1998
@@ -126,7 +126,9 @@
if (boot_cpu_data.hlt_works_ok && !hlt_counter && !*need_resched)
__asm__("hlt");

+#ifdef CONFIG_APM
}
+#endif
if (*need_resched)
{
schedule();




-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:46    [from the cache]
©2003-2011 Jasper Spaans