Hello everybody, (This is the first time i send in a patch, so correct me if I?m doing something wrong) This patch causes the cpu to stop instead of using an endless loop (I?m not sure if this works with the watchdog so please take a review). The idea behind this is to keep the power usage on panic?d 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 doesn?t need more libs and should have no special depencies to consider. The panic-blink doesn?t 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
Attachment:
panic.c.diff
Description: Binary data
- Follow-Ups:
- Re: [Patch] panic.c
- From: Jan Engelhardt <[email protected]>
- Re: [Patch] panic.c
- Prev by Date: Re: [PATCH][RESEND] efficeon-agp leaks 'struct agp_bridge_data' in error paths of agp_efficeon_probe()
- Next by Date: [PATCH] zap_other_threads: don't optimize thread_group_empty() case
- Previous by thread: [PATCH] exit_notify: don't take tasklist for TIF_SIGPENDING re-targeting
- Next by thread: Re: [Patch] panic.c
- Index(es):