Messages in this thread Patch in this message | | | From | Stephen.Rothwell@canb ... | Subject | Re: ATX Power off & SMP-Kernel | Date | Tue, 27 Apr 1999 01:37:47 +1000 |
| |
Hi,
Akira YOSHIYAMA <yosshy@tkf.att.ne.jp> writes: > > Right. APM is not enough to use on SMP. But I want only one function > of APM, power off. Current Linux kernel can do that with the option > 'apm=smp-power-off' and LINUX_REBOOT_CMD_POWER_OFF, but incomplete > for me.
Can you try the following patch for me (it is just a patch for apm.c in arch/i386/kernel).
--- apm.c.old Thu Feb 4 21:51:53 1999 +++ apm.c Sun Feb 21 22:44:32 1999 @@ -1378,14 +1378,6 @@ (apm_bios_info.dseg_len - 1) & 0xffff); } #endif -#ifdef CONFIG_SMP - if (smp_num_cpus > 1) { - printk(KERN_NOTICE "apm: disabled - APM is not SMP safe.\n"); - if (smp_hack) - smp_hack = 2; - return; - } -#endif if (apm_bios_info.version > 0x100) { /* * We only support BIOSs up to version 1.2 @@ -1440,6 +1432,14 @@ } } +#ifdef CONFIG_SMP + if (smp_num_cpus > 1) { + printk(KERN_NOTICE "apm: disabled - APM is not SMP safe.\n"); + if (smp_hack) + smp_hack = 2; + return; + } +#endif #ifdef CONFIG_APM_DO_ENABLE if (apm_bios_info.flags & APM_BIOS_DISABLED) { /* Cheers, Stephen -- Stephen Rothwell Stephen.Rothwell@canb.auug.org.au http://www.canb.auug.org.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/
| |