Hi Linus,
Could you please apply the followng patch. It does the following:
- Remove CONFIG_SMP as the compiler will optimize
the code away anyway (smp_num_cpus == 1 in UP)
noted by Artur Skawina <[EMAIL PROTECTED]>.
- Make power off under SMP work again.
- Fix thinko with initial engaging of BIOS.
- Make sure power off only happens on CPU 0
(Paul "Rusty" Russell <[EMAIL PROTECTED]>).
- Do error notification to user mode if BIOS calls fail.
- Move entrypoint offset fix to ...boot/setup.S
where it belongs (Cosmos <[EMAIL PROTECTED]>).
- Remove smp-power-off. SMP users can disable power off
by not doing "halt -p". Suggested by Jim Avera <[EMAIL PROTECTED]>.
- Register the /proc/apm entry even on SMP so that
scripts that check for it before doing power off
work (Jim Avera <[EMAIL PROTECTED]>).
The patch is a bit big to include here (23k, 834 lines), so
I have made it available at
http://linuxcare.com.au/apm/2.3.42-APM.1.gz
and
http://linuxcare.com.au/apm/2.3.43pre1-APM.1.gz
The error notification is required by the XFree86 guys (since they
want to make teh X server APM aware).
Cheers,
Stephen
--
Stephen Rothwell, Open Source Project Engineer, Linuxcare, Inc.
+61-2-62628990 tel, +61-2-62628991 fax
[EMAIL PROTECTED], http://www.linuxcare.com/
Linuxcare. Support for the revolution.