lkml.org 
[lkml]   [1999]   [Nov]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Date
SubjectRe: poweroff function in apm.c breaks on 2.3.26
[Akira YOSHIYAMA]
> arch/i386/kernel/kernel.o(.text+0x2b21): undefined reference to `sysrq_power_off'

> I think that `sysrq_power_off' specific codes in apm.c must be active
> only defined CONFIG_MAGIC_SYSRQ...

Here.

--- linux-2.3.26/arch/i386/kernel/apm.c.orig Sun Nov 7 07:24:54 1999
+++ linux-2.3.26/arch/i386/kernel/apm.c Sun Nov 7 08:20:17 1999
@@ -1367,7 +1367,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;
--
Peter Samuelson
<sampo.creighton.edu!psamuels>

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

\
 
 \ /
  Last update: 2005-03-22 13:54    [W:0.054 / U:0.160 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site