[PATCH] VISWS: disable APM

From: Randy.Dunlap
Date: Thu Oct 14 2004 - 17:59:55 EST


(full email thread here:
http://marc.theaimsgroup.com/?t=109758139300007&r=1&w=2
)

Andrey Panin wrote:
Raj wrote:

The build failed with an error 'Undefined reference to
machine_real_restart'

Yep, I see that also.

Can this be fixed ?? At the very least, hide APM options #if
!(CONFIG_PC) ??

i am not aware much about the apm dependencies. maintainers might answer
this more correctly.

True. I should have copied Andrey on it earlier.

Andrey, any thoughts about how to keep VISWS from building APM
support? use Kconfig? or does VISWS support APM?

IMHO Kconfig is the best choise. VISWS has no PC compatible BIOS at all,
it uses ARC compilant firmware for startup and configuration. Even though
this firmware does limited BIOS emulation for running ROMs on PCI cards, i
dont think it has working APM BIOS implementation.

Raj, can you test this patch? It WorksForMe.

It disables APM & P4THERMAL support for X86_VISWS so that VISWS
builds correctly.

--
~Randy

Prevent X86_VISWS config from building APM support.
APM isn't supported and it won't build if attempted.
Also disable P4THERMAL for VISWS.

Signed-off-by: Randy Dunlap <rddunlap@xxxxxxxx>


diffstat:=
arch/i386/Kconfig | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff -Naurp ./arch/i386/Kconfig~visws_noapm ./arch/i386/Kconfig
--- ./arch/i386/Kconfig~visws_noapm 2004-10-11 10:54:31.019559744 -0700
+++ ./arch/i386/Kconfig 2004-10-14 09:52:24.131743344 -0700
@@ -584,7 +584,7 @@ config X86_MCE_NONFATAL

config X86_MCE_P4THERMAL
bool "check for P4 thermal throttling interrupt."
- depends on X86_MCE && (X86_UP_APIC || SMP)
+ depends on X86_MCE && (X86_UP_APIC || SMP) && !X86_VISWS
help
Enabling this feature will cause a message to be printed when the P4
enters thermal throttling.
@@ -879,7 +879,7 @@ source kernel/power/Kconfig
source "drivers/acpi/Kconfig"

menu "APM (Advanced Power Management) BIOS Support"
-depends on PM
+depends on PM && !X86_VISWS

config APM
tristate "APM (Advanced Power Management) BIOS support"