x86 cpufreq: Fix debug=y build.
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 12 Jul 2010 09:48:04 +0000 (10:48 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 12 Jul 2010 09:48:04 +0000 (10:48 +0100)
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/arch/x86/acpi/cpufreq/cpufreq.c
xen/include/xen/cpumask.h

index edd581ba94daf1bcf17b860566bb270681392301..26339a0867dc1cf980b15851cd65d2393515d479 100644 (file)
@@ -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)))
index 4dbb3054ce3f6bf09ec03d795be8b2ee97b6a358..5de90747bac784aa577568dc5f65c2611769094e 100644 (file)
@@ -192,6 +192,7 @@ static inline int __cpus_full(const cpumask_t *srcp, int nbits)
        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)
 {