WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] [IA64] Compilation fix to cpufreq stuff.

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] [IA64] Compilation fix to cpufreq stuff.
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: Wed, 1 Oct 2008 12:11:33 +0900
Cc: Ian.Jackson@xxxxxxxxxxxxx, ke.yu@xxxxxxxxx
Delivery-date: Tue, 30 Sep 2008 20:11:58 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.6i
Currently xen-unstable.hg is broken on ia64 and it should be fixed
by Yu's patch. However he is off this week, so I'm sending
the workaround patch.

[IA64] Compilation fix to cpufreq stuff.

This patch fixes the following compilation error by
defining stubs.
This patch is just band aid patch until those functions are implemented
later.

> .../xen/drivers/built_in.o: In function `set_px_pminfo':
> .../xen/drivers/cpufreq/cpufreq.c:226: undefined reference to `get_cpu_id'
> .../xen/drivers/cpufreq/cpufreq.c:268: undefined reference to 
> `xenpf_copy_px_states'
> .../xen/drivers/cpufreq/cpufreq.c:303: undefined reference to 
> `cpufreq_cpu_init'

This looks like it was introduce in one of these changes:

changeset:   18552:19b0a4f91712
summary:     x86 and ia64: move cpufreq notify code to commone place

changeset:   18551:d1d9915041de
summary:     X86 and IA64: Update cpufreq statistic logic for supporting both 
x86

changeset:   18550:08374be21318
summary:     X86 and IA64: Rebase cpufreq logic for supporting both x86 and ia64

Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>

diff -r 782599274bf9 xen/arch/ia64/xen/Makefile
--- a/xen/arch/ia64/xen/Makefile        Tue Sep 30 10:14:54 2008 +0100
+++ b/xen/arch/ia64/xen/Makefile        Wed Oct 01 12:09:25 2008 +0900
@@ -1,4 +1,5 @@
 subdir-y += oprofile
+subdir-y += cpufreq
 
 obj-y += relocate_kernel.o
 obj-y += machine_kexec.o
diff -r 782599274bf9 xen/arch/ia64/xen/cpufreq/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/xen/arch/ia64/xen/cpufreq/Makefile        Wed Oct 01 12:09:25 2008 +0900
@@ -0,0 +1,1 @@
+obj-y += cpufreq.o
diff -r 782599274bf9 xen/arch/ia64/xen/cpufreq/cpufreq.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/xen/arch/ia64/xen/cpufreq/cpufreq.c       Wed Oct 01 12:09:25 2008 +0900
@@ -0,0 +1,24 @@
+/*
+ * Temporal workaround for compilation breakage.
+ */
+
+#include <xen/errno.h>
+#include <acpi/acpi.h>
+#include <acpi/cpufreq/processor_perf.h>
+#include <public/platform.h>
+
+int get_cpu_id(u8 acpi_id)
+{
+    return -1;
+}
+
+int xenpf_copy_px_states(struct processor_performance *pxpt,
+                         struct xen_processor_performance *dom0_px_info)
+{
+    return -ENOSYS;
+}
+
+int cpufreq_cpu_init(unsigned int cpuid)
+{
+    return -ENOSYS;
+}


-- 
yamahata

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] [IA64] Compilation fix to cpufreq stuff., Isaku Yamahata <=