[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] [IA64] Compilation fix to cpufreq stuff.
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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |