1 message in com.xensource.lists.xen-ia64-devel[Xen-ia64-devel] [patch] enable acpi_...
FromSent OnAttachments
Greg Edwards06 Jun 2005 13:11 
Subject:[Xen-ia64-devel] [patch] enable acpi_get_sysname()
From:Greg Edwards (edwa@sgi.com)
Date:06/06/2005 01:11:35 PM
List:com.xensource.lists.xen-ia64-devel

Dan,

Attached patch enables acpi_get_sysname() for non CONFIG_IA64_GENERIC kernels. I figured it doesn't make sense to pull in all the machvec infrastructure just for one function.

I use acpi_get_sysname() in the early console registration to see if we are on an sn2 machine or simulator.

Greg

xen/arch/ia64/acpi.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletion(-)

Index: a/xen/arch/ia64/acpi.c =================================================================== --- a/xen/arch/ia64/acpi.c 2005-06-06 13:26:45.792073715 -0500 +++ b/xen/arch/ia64/acpi.c 2005-06-06 13:27:56.674046424 -0500 @@ -68,7 +68,7 @@ unsigned char acpi_legacy_devices; const char * acpi_get_sysname (void) { -#ifdef CONFIG_IA64_GENERIC +/* #ifdef CONFIG_IA64_GENERIC */ unsigned long rsdp_phys; struct acpi20_table_rsdp *rsdp; struct acpi_table_xsdt *xsdt; @@ -101,6 +101,7 @@ acpi_get_sysname (void) }

return "dig"; +/* #else # if defined (CONFIG_IA64_HP_SIM) return "hpsim"; @@ -114,6 +115,7 @@ acpi_get_sysname (void) # error Unknown platform. Fix acpi.c. # endif #endif +*/ }

#ifdef CONFIG_ACPI_BOOT