Skip to contentSkip to conversation

CPUFreq PowerOP integratoin, CPUFreq core 1/3

RFC New Eugeny S. Mints 1 participant 1 message Aug 24, 2006 CPU frequency scaling framework

lore
Share & tools
lore
#0 lore raw

RFC 1/1 CPUFreq PowerOP integratoin, CPUFreq core 1/3

This patch touches cpufreq.c and freq_tables.c

drivers/cpufreq/Makefile +1 -4
index 71fc3b4..73f2e37 100644
@@ -1,5 +1,5 @@
 # CPUfreq core
-obj-$(CONFIG_CPU_FREQ)			+= cpufreq.o
+obj-$(CONFIG_CPU_FREQ)			+= cpufreq.o freq_helpers.o
 # CPUfreq stats
 obj-$(CONFIG_CPU_FREQ_STAT)             += cpufreq_stats.o
 
@@ -10,6 +10,3 @@ obj-$(CONFIG_CPU_FREQ_GOV_USERSPACE)	+= 
 obj-$(CONFIG_CPU_FREQ_GOV_ONDEMAND)	+= cpufreq_ondemand.o
 obj-$(CONFIG_CPU_FREQ_GOV_CONSERVATIVE)	+= cpufreq_conservative.o
 
-# CPUfreq cross-arch helpers
-obj-$(CONFIG_CPU_FREQ_TABLE)		+= freq_table.o
-
drivers/cpufreq/cpufreq.c +272 -260

945 lines not on this page · raw message

drivers/cpufreq/freq_helpers.c new file +317 -0

317 lines not on this page · raw message

drivers/cpufreq/freq_helpers.h new file +22 -0
new file mode 100644
index 0000000..78780ef
@@ -0,0 +1,22 @@
+/*
+ * cpufreq core helpers
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+#ifndef __LINUX_CPUFREQ_HELPERS_H__
+#define __LINUX_CPUFREQ_HELPERS_H__
+
+#include <linux/cpufreq.h>
+
+#define CPUFREQ_ENTRY_INVALID	~0
+
+int cpufreq_cpuinfo(struct cpufreq_policy *policy);
+int cpufreq_verify(struct cpufreq_policy *policy);
+int cpufreq_target(struct cpufreq_policy *policy, unsigned int target_freq,
+		   unsigned int relation);
+int cpufreq_setpolicy(struct cpufreq_policy *policy);
+
+#endif /* __LINUX_CPUFREQ_POWEROP_H__ */
+
drivers/cpufreq/freq_table.c deleted +0 -227

227 lines not on this page · raw message

include/linux/cpufreq.h +18 -72

129 lines not on this page · raw message