]> git.baikalelectronics.ru Git - kernel.git/commit
x86, xen: short-circuit tests for dom0
authorJeremy Fitzhardinge <jeremy@goop.org>
Fri, 6 Feb 2009 21:35:44 +0000 (13:35 -0800)
committerIngo Molnar <mingo@elte.hu>
Mon, 16 Feb 2009 07:55:50 +0000 (08:55 +0100)
commitc44421b5bf34daa60dc441dd3f0ffeb0d9a4fff8
treef5a89819a38878d92f6234f3aa6f7c4b1726ab68
parent5cb30a8807c7f89d2d18e63aa7b52d09a0c54f1e
x86, xen: short-circuit tests for dom0

When testing for a dom0/initial/privileged domain, make sure the
predicate evaluates to a compile-time 0 if CONFIG_XEN_DOM0 isn't
enabled.  This will make most of the dom0 code evaporate without
much more effort.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/xen/hypervisor.h