aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeir Fraser <keir@xensource.com>2007-03-31 19:02:09 +0100
committerKeir Fraser <keir@xensource.com>2007-03-31 19:02:09 +0100
commit75ba97629bb0294ff16a8b690b2eff3f96c51707 (patch)
tree7254cb6df929ed942eb7e5203787d75800546369
parentf24c3877e5504ce86e8c338b447aeda3b246b805 (diff)
downloadxen-75ba97629bb0294ff16a8b690b2eff3f96c51707.tar.gz
xen-75ba97629bb0294ff16a8b690b2eff3f96c51707.tar.bz2
xen-75ba97629bb0294ff16a8b690b2eff3f96c51707.zip
linux: Remove a few redundant config options. Build util.c for ia64
and ifdef out a couple of functions that are not yet fully generic. Signed-off-by: Keir Fraser <keir@xensource.com>
-rw-r--r--linux-2.6-xen-sparse/arch/ia64/Kconfig9
-rw-r--r--linux-2.6-xen-sparse/drivers/xen/Kconfig16
-rw-r--r--linux-2.6-xen-sparse/drivers/xen/Makefile6
-rw-r--r--linux-2.6-xen-sparse/drivers/xen/core/Makefile3
-rw-r--r--linux-2.6-xen-sparse/drivers/xen/util.c5
5 files changed, 9 insertions, 30 deletions
diff --git a/linux-2.6-xen-sparse/arch/ia64/Kconfig b/linux-2.6-xen-sparse/arch/ia64/Kconfig
index e4f4a6431a..e665b7c391 100644
--- a/linux-2.6-xen-sparse/arch/ia64/Kconfig
+++ b/linux-2.6-xen-sparse/arch/ia64/Kconfig
@@ -576,15 +576,6 @@ source "crypto/Kconfig"
# override default values of drivers/xen/Kconfig
#
if XEN
-config XEN_UTIL
- default n
-
-config XEN_BALLOON
- default y
-
-config XEN_REBOOT
- default y
-
config XEN_SMPBOOT
default n
endif
diff --git a/linux-2.6-xen-sparse/drivers/xen/Kconfig b/linux-2.6-xen-sparse/drivers/xen/Kconfig
index 71ba9f264d..f08e2b8aef 100644
--- a/linux-2.6-xen-sparse/drivers/xen/Kconfig
+++ b/linux-2.6-xen-sparse/drivers/xen/Kconfig
@@ -253,22 +253,6 @@ config NO_IDLE_HZ
bool
default y
-config XEN_UTIL
- bool
- default y
-
-config XEN_BALLOON
- bool
- default y
-
-config XEN_DEVMEM
- bool
- default y
-
-config XEN_REBOOT
- bool
- default y
-
config XEN_SMPBOOT
bool
default y
diff --git a/linux-2.6-xen-sparse/drivers/xen/Makefile b/linux-2.6-xen-sparse/drivers/xen/Makefile
index c7d66d139e..f453f8ecf5 100644
--- a/linux-2.6-xen-sparse/drivers/xen/Makefile
+++ b/linux-2.6-xen-sparse/drivers/xen/Makefile
@@ -4,10 +4,10 @@ obj-y += evtchn/
obj-y += privcmd/
obj-y += xenbus/
obj-y += gntdev/
+obj-y += balloon/
+obj-y += char/
-obj-$(CONFIG_XEN_UTIL) += util.o
-obj-$(CONFIG_XEN_BALLOON) += balloon/
-obj-$(CONFIG_XEN_DEVMEM) += char/
+obj-y += util.o
obj-$(CONFIG_XEN_BLKDEV_BACKEND) += blkback/
obj-$(CONFIG_XEN_BLKDEV_TAP) += blktap/
obj-$(CONFIG_XEN_NETDEV_BACKEND) += netback/
diff --git a/linux-2.6-xen-sparse/drivers/xen/core/Makefile b/linux-2.6-xen-sparse/drivers/xen/core/Makefile
index 064105443e..95122cbf46 100644
--- a/linux-2.6-xen-sparse/drivers/xen/core/Makefile
+++ b/linux-2.6-xen-sparse/drivers/xen/core/Makefile
@@ -2,12 +2,11 @@
# Makefile for the linux kernel.
#
-obj-y := evtchn.o gnttab.o features.o
+obj-y := evtchn.o gnttab.o features.o reboot.o machine_reboot.o
obj-$(CONFIG_PROC_FS) += xen_proc.o
obj-$(CONFIG_SYSFS) += hypervisor_sysfs.o
obj-$(CONFIG_HOTPLUG_CPU) += cpu_hotplug.o
obj-$(CONFIG_XEN_SYSFS) += xen_sysfs.o
-obj-$(CONFIG_XEN_REBOOT) += reboot.o machine_reboot.o
obj-$(CONFIG_XEN_SMPBOOT) += smpboot.o
obj-$(CONFIG_KEXEC) += machine_kexec.o
diff --git a/linux-2.6-xen-sparse/drivers/xen/util.c b/linux-2.6-xen-sparse/drivers/xen/util.c
index 922c201abd..f9da5273f7 100644
--- a/linux-2.6-xen-sparse/drivers/xen/util.c
+++ b/linux-2.6-xen-sparse/drivers/xen/util.c
@@ -22,6 +22,9 @@ struct class *get_xen_class(void)
}
EXPORT_SYMBOL_GPL(get_xen_class);
+/* Todo: merge ia64 ('auto-translate physmap') versions of these functions. */
+#ifndef __ia64__
+
static int f(pte_t *pte, struct page *pmd_page, unsigned long addr, void *data)
{
/* apply_to_page_range() does all the hard work. */
@@ -63,3 +66,5 @@ void free_vm_area(struct vm_struct *area)
kfree(area);
}
EXPORT_SYMBOL_GPL(free_vm_area);
+
+#endif /* !__ia64__ */