[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <006701c7d775$53137cc0$6800a8c0@jhnotebook>
Date: Sun, 5 Aug 2007 17:28:45 +0200
From: Jörg Hoffmann <jh2000@...t24.eu>
To: <linux-kernel@...r.kernel.org>
Subject: [Patch] panic.c
Hello everybody,
(This is the first time i send in a patch, so correct me if Im doing
something wrong)
This patch causes the cpu to stop instead of using an endless loop (Im
not sure if this works with the watchdog so please take a review).
The idea behind this is to keep the power usage on panicd machines
(without auto-reboot) low. Another point is in an Virtual Machine
environment the process of the VM is using 100% of the host-cpu. This
would stuck other programs or VMs. This patch brings the VM to stop and
keeps the cpu usage below 1%.
I have tested the patch in an VM, the only change is mdelay(); to
cpu_idle(); it doesnt need more libs and should have no special
depencies to consider.
The panic-blink doesnt work further so it might be removed if there is
no better way.
Maybe someone has an better idea for this problem
Greetings
Jörg Hoffmann
Download attachment "panic.c.diff" of type "application/octet-stream" (249 bytes)
Powered by blists - more mailing lists