Re: 2.5.69-mm5: reverting i8259-shutdown.patch

Zwane Mwaikambo (zwane@linuxpower.ca)
Sat, 17 May 2003 16:35:51 -0400 (EDT)


On Sat, 17 May 2003, Felipe Alfaro Solana wrote:

> The machine is a NEC (Packard Bell) Chrom@. Could an lspci be of
> interest?

Hmm perhaps /var/log/dmesg, also can you try this ugly patch?

Index: linux-2.5.69-mm6/drivers/acpi/hardware/hwsleep.c
===================================================================
RCS file: /build/cvsroot/linux-2.5.69/drivers/acpi/hardware/hwsleep.c,v
retrieving revision 1.1.1.1
diff -u -p -B -r1.1.1.1 hwsleep.c
--- linux-2.5.69-mm6/drivers/acpi/hardware/hwsleep.c 6 May 2003 12:20:11 -0000 1.1.1.1
+++ linux-2.5.69-mm6/drivers/acpi/hardware/hwsleep.c 17 May 2003 20:33:20 -0000
@@ -306,7 +306,7 @@ acpi_enter_sleep_state (
* still read the right value. Ideally, this entire block would go
* away entirely.
*/
- acpi_os_stall (10000000);
+ /* acpi_os_stall (10000000); */

status = acpi_hw_register_write (ACPI_MTX_DO_NOT_LOCK, ACPI_REGISTER_PM1_CONTROL,
sleep_enable_reg_info->access_bit_mask);
Index: linux-2.5.69-mm6/drivers/acpi/sleep/poweroff.c
===================================================================
RCS file: /build/cvsroot/linux-2.5.69/drivers/acpi/sleep/poweroff.c,v
retrieving revision 1.1.1.1
diff -u -p -B -r1.1.1.1 poweroff.c
--- linux-2.5.69-mm6/drivers/acpi/sleep/poweroff.c 6 May 2003 12:20:12 -0000 1.1.1.1
+++ linux-2.5.69-mm6/drivers/acpi/sleep/poweroff.c 17 May 2003 20:35:11 -0000
@@ -15,6 +15,7 @@ acpi_power_off (void)
printk("%s called\n",__FUNCTION__);
acpi_enter_sleep_state_prep(ACPI_STATE_S5);
ACPI_DISABLE_IRQS();
+ printk("%s:%d\n", __FUNCTION__, __LINE__);
acpi_enter_sleep_state(ACPI_STATE_S5);
}

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