* [PATCH] ia64: Fix build
@ 2009-12-25 8:13 KUWAMURA Shin'ya
0 siblings, 0 replies; 2+ messages in thread
From: KUWAMURA Shin'ya @ 2009-12-25 8:13 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1: Type: Text/Plain, Size: 112 bytes --]
Hi,
Xenpaging supports only x86.
Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
--
KUWAMURA Shin'ya
[-- Attachment #2: disable-xenpaging.patch --]
[-- Type: Text/X-Patch, Size: 669 bytes --]
# HG changeset patch
# User KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
# Date 1261718720 -32400
# Node ID 1f8cd3b61af37418703d18efc3f2cccb59ec208d
# Parent 107f6fc725a37200931b5b10c4397d4c540e3fe4
ia64: Fix build
Xenpaging support only x86.
Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
diff -r 107f6fc725a3 -r 1f8cd3b61af3 tools/Makefile
--- a/tools/Makefile Fri Dec 25 11:25:02 2009 +0900
+++ b/tools/Makefile Fri Dec 25 14:25:20 2009 +0900
@@ -35,7 +35,7 @@
SUBDIRS-y += xenpmd
SUBDIRS-y += libxl
SUBDIRS-y += remus
-SUBDIRS-y += xenpaging
+SUBDIRS--$(CONFIG_X86) += xenpaging
# These don't cross-compile
ifeq ($(XEN_COMPILE_ARCH),$(XEN_TARGET_ARCH))
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH] ia64: fix build
@ 2010-06-15 12:20 Jan Beulich
0 siblings, 0 replies; 2+ messages in thread
From: Jan Beulich @ 2010-06-15 12:20 UTC (permalink / raw)
To: xen-devel; +Cc: xen-ia64-devel
Signed-off-by: Jan Beulich <jbeulich@novell.com>
--- 2010-06-15.orig/xen/arch/ia64/xen/machine_kexec.c 2009-02-02 09:02:52.000000000 +0100
+++ 2010-06-15/xen/arch/ia64/xen/machine_kexec.c 2010-06-15 10:21:55.000000000 +0200
@@ -73,49 +73,6 @@ static void ia64_machine_kexec(struct un
BUG();
}
-#if CONFIG_SMP
-/* Need to implement some subset of hotplug-cpu - enough to
- * send a cpu into rendevouz */
-
-/* N.B: The tasks frozen parameter can probably be dropped
- * This can probably be rolled into cpu_down
- */
-static int _cpu_down(unsigned int cpu, int tasks_frozen)
-{
- if (num_online_cpus() == 1)
- return -EBUSY;
-
- if (!cpu_online(cpu))
- return -EINVAL;
-
-#ifndef XEN
- /* XXX: What, if anything, should Xen do here? */
- /* Ensure that we are not runnable on dying cpu */
- old_affinity = current->cpus_allowed;
- tmp = CPU_MASK_ALL;
- cpu_clear(cpu, tmp);
- set_cpus_allowed(current, tmp);
-#endif
-
- cpu_clear(cpu, cpu_online_map);
-
- __cpu_die(cpu);
-
- return 0;
-}
-
-static int cpu_down(unsigned int cpu)
-{
- int err;
-
- /* Unlike Linux there is no lock, as there are no other callers
- * and no other CPUS. */
- err = _cpu_down(cpu, 0);
-
- return 0;
-}
-#endif /* SMP */
-
/* This should probably be an arch-hook called from kexec_exec()
* Its also likely that it should be in the xen equivalent of
* arch/ia64/kernel/process.c */
--- 2010-06-15.orig/xen/include/asm-ia64/linux-xen/asm/processor.h 2009-03-16 16:09:07.000000000 +0100
+++ 2010-06-15/xen/include/asm-ia64/linux-xen/asm/processor.h 2010-06-15 10:35:08.000000000 +0200
@@ -188,6 +188,7 @@ struct cpuinfo_ia64 {
};
DECLARE_PER_CPU(struct cpuinfo_ia64, cpu_info);
+DECLARE_PER_CPU(int, cpu_state);
/*
* The "local" data variable. It refers to the per-CPU data of the currently executing
--- 2010-06-15.orig/xen/include/asm-ia64/linux-xen/asm/smp.h 2010-05-20 09:59:27.000000000 +0200
+++ 2010-06-15/xen/include/asm-ia64/linux-xen/asm/smp.h 2010-06-15 10:37:37.000000000 +0200
@@ -60,6 +60,8 @@ extern struct smp_boot_data {
extern char no_int_routing __devinitdata;
extern cpumask_t cpu_online_map;
+#define cpu_is_offline(cpu) unlikely(!cpu_online(cpu))
+
DECLARE_PER_CPU(cpumask_t, cpu_core_map);
DECLARE_PER_CPU(cpumask_t, cpu_sibling_map);
extern int smp_num_siblings;
--- 2010-06-15.orig/xen/include/asm-ia64/linux-xen/linux/cpu.h 2007-10-09 11:46:23.000000000 +0200
+++ /dev/null 1970-01-01 00:00:00.000000000 +0000
@@ -1,26 +0,0 @@
-#ifndef _ASM_IA64_CPU_H_
-#define _ASM_IA64_CPU_H_
-
-#include <linux/device.h>
-#include <linux/cpu.h>
-#include <linux/topology.h>
-#include <linux/percpu.h>
-
-#ifndef XEN
-struct ia64_cpu {
- struct cpu cpu;
-};
-
-DECLARE_PER_CPU(struct ia64_cpu, cpu_devices);
-#endif
-
-DECLARE_PER_CPU(int, cpu_state);
-
-#ifndef XEN
-extern int arch_register_cpu(int num);
-#ifdef CONFIG_HOTPLUG_CPU
-extern void arch_unregister_cpu(int);
-#endif
-#endif
-
-#endif /* _ASM_IA64_CPU_H_ */
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-06-15 12:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-15 12:20 [PATCH] ia64: fix build Jan Beulich
-- strict thread matches above, loose matches on Subject: below --
2009-12-25 8:13 [PATCH] ia64: Fix build KUWAMURA Shin'ya
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).