[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] x86 cpufreq: Fix debug=y build.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1278928084 -3600
# Node ID 03f5833933004141acf5b303f3306c52289e9f4f
# Parent  08b2222ff505319a5cabebef4155808cb89f06b3
x86 cpufreq: Fix debug=y build.

Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 xen/arch/x86/acpi/cpufreq/cpufreq.c |    2 +-
 xen/include/xen/cpumask.h           |    1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff -r 08b2222ff505 -r 03f583393300 xen/arch/x86/acpi/cpufreq/cpufreq.c
--- a/xen/arch/x86/acpi/cpufreq/cpufreq.c       Mon Jul 12 10:43:57 2010 +0100
+++ b/xen/arch/x86/acpi/cpufreq/cpufreq.c       Mon Jul 12 10:48:04 2010 +0100
@@ -180,7 +180,7 @@ static void drv_read(struct drv_cmd *cmd
 {
     cmd->val = 0;
 
-    ASSERT(cpus_weight(cmd->mask) == 1);
+    ASSERT(cpumask_weight(cmd->mask) == 1);
 
     /* to reduce IPI for the sake of performance */
     if (likely(cpumask_test_cpu(smp_processor_id(), cmd->mask)))
diff -r 08b2222ff505 -r 03f583393300 xen/include/xen/cpumask.h
--- a/xen/include/xen/cpumask.h Mon Jul 12 10:43:57 2010 +0100
+++ b/xen/include/xen/cpumask.h Mon Jul 12 10:48:04 2010 +0100
@@ -192,6 +192,7 @@ static inline int __cpus_full(const cpum
        return bitmap_full(srcp->bits, nbits);
 }
 
+#define cpumask_weight(cpumask) __cpus_weight(cpumask, NR_CPUS)
 #define cpus_weight(cpumask) __cpus_weight(&(cpumask), NR_CPUS)
 static inline int __cpus_weight(const cpumask_t *srcp, int nbits)
 {

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.