Re: 2.3.26pre1 sysrq_power_off undefined

Garst R. Reese (reese@isn.net)
Sun, 07 Nov 1999 03:49:22 -0400


Hi Stephen,
This apparently did not make into 2.3.26
Jeff Garzik also posted a patch that did go into 2.3.26, but it did not
fix the problem with APM and NOT Magic Sysrq.

Stephen Rothwell wrote:
>
> Hi Garst,
>
> "Garst R. Reese" <reese@isn.net> writes:
> > In apm.c
> > gcc-2.95.2
> > You did say it compiled eh Stephen?
>
> Sorry about that, I compiled with MAGIC_SYSREQ configured ...
> try this.
>
> diff -ruN 2.3.26pre1/arch/i386/kernel/apm.c 2.3.26pre1-APM/arch/i386/kernel/apm.c
> --- 2.3.26pre1/arch/i386/kernel/apm.c Fri Nov 5 11:47:15 1999
> +++ 2.3.26pre1-APM/arch/i386/kernel/apm.c Fri Nov 5 12:04:56 1999
> @@ -150,7 +150,9 @@
>
> extern unsigned long get_cmos_time(void);
>
> +#ifdef CONFIG_MAGIC_SYSRQ
> extern void (*sysrq_power_off)(void);
> +#endif
>
> /*
> * The apm_bios device is one of the misc char devices.
> @@ -1367,7 +1369,9 @@
> /* Install our power off handler.. */
> if (power_off_enabled)
> acpi_power_off = apm_power_off;
> +#ifdef CONFIG_MAGIC_SYSRQ
> sysrq_power_off = apm_power_off;
> +#endif
>
> apm_mainloop();
> return 0;
>
> Cheers,
> Stephen
> --
> Stephen Rothwell sfr@linuxcare.com
> http://linuxcare.com..au/sfr/
>
> -
> 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/

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