Re: UP flu

Philipp Rumpf (prumpf@jcsbs.lanobis.de)
Thu, 19 Nov 1998 07:42:39 +0100


--ibTvN161/egqYuK8
Content-Type: text/plain; charset=us-ascii

On Wed, Nov 18, 1998 at 06:25:20PM +0100, Philipp Rumpf wrote:
> Anyway, could those of you experiencing the slow-downs, reboots etc. with
> UP kernels try the following workaround (it will just avoid calling hard_idle()
> completely) ?
Sorry, forgot the patch.
Philipp Rumpf

--ibTvN161/egqYuK8
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="patch.2.1.128"

--- linux/arch/i386/kernel/process.c Wed Nov 11 00:20:28 1998
+++ linux-2/arch/i386/kernel/process.c Tue Nov 17 20:37:35 1998
@@ -129,9 +129,10 @@
check_pgt_cache();
start_idle = jiffies;
}
- if (jiffies - start_idle > HARD_IDLE_TIMEOUT)
+ /* if (jiffies - start_idle > HARD_IDLE_TIMEOUT)
hard_idle();
- else {
+ else */
+ {
if (boot_cpu_data.hlt_works_ok && !hlt_counter && !current->need_resched)
__asm__("hlt");
}

--ibTvN161/egqYuK8--

-
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/