Define cpufreq_get for kernels which don't export it when not config'd.
Signed-off-by: Zachary Amsden <[email protected]>
diff --git a/external-module-compat-comm.h b/external-module-compat-comm.h
index 47fdc86..6fe7d87 100644
--- a/external-module-compat-comm.h
+++ b/external-module-compat-comm.h
@@ -993,3 +993,12 @@ unsigned long kvm_vma_kernel_pagesize(struct
vm_area_struct *vma)
} \
})
#endif
+
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,33)
+#ifndef CONFIG_CPU_FREQ
+static inline unsigned int cpufreq_get(unsigned int cpu)
+{
+ return 0;
+}
+#endif
+#endif
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html