public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH 20/28] ia64/xen: domU xen machine vector without dma api.
@ 2008-02-21 23:08 Jeremy Fitzhardinge
  2008-02-22  5:10 ` Isaku Yamahata
  0 siblings, 1 reply; 2+ messages in thread
From: Jeremy Fitzhardinge @ 2008-02-21 23:08 UTC (permalink / raw)
  To: linux-ia64

yamahata@valinux.co.jp wrote:
> diff --git a/arch/ia64/kernel/acpi.c b/arch/ia64/kernel/acpi.c
> index 78f28d8..9c17a46 100644
> --- a/arch/ia64/kernel/acpi.c
> +++ b/arch/ia64/kernel/acpi.c
> @@ -118,6 +118,10 @@ acpi_get_sysname(void)
>  		return "hpzx1";
>  	} else if (!strcmp(hdr->oem_id, "SGI")) {
>  		return "sn2";
> +#ifdef CONFIG_XEN
> +	} else if (is_running_on_xen() && !strcmp(hdr->oem_id, "XEN")) {
> +		return "xen";
> +#endif
>  	}

Is the #ifdef necessary?  Couldn't you make is_running_on_xen() just 
evaluate to 0 in the non-Xen case?

    J

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-02-22  5:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-21 23:08 [PATCH 20/28] ia64/xen: domU xen machine vector without dma api Jeremy Fitzhardinge
2008-02-22  5:10 ` Isaku Yamahata

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox