Skip to contentSkip to conversation

core: include cleanup

PATCH In review Dominik Brodowski 1 participant 1 message Jan 29, 2005 CPU frequency scaling framework

lore
Share & tools
lore
#0 lore raw

PATCH 5/5 core: include cleanup

Move core-related declarations to the new cpufreq_core.h file in drivers/cpufreq/.

---

 drivers/cpufreq/cpufreq_core.h  |    6 ++++++
 drivers/cpufreq/cpufreq_stats.c |    2 ++
 include/linux/cpufreq.h         |    8 --------
 3 files changed, 8 insertions(+), 8 deletions(-)
drivers/cpufreq/cpufreq_core.h +6 -0
Index: 2.6.11-rc2+/drivers/cpufreq/cpufreq_core.h
===================================================================
@@ -15,7 +15,13 @@
 extern struct list_head			cpufreq_governor_list;
 extern struct semaphore			cpufreq_governor_sem;
 
+struct cpufreq_policy *cpufreq_cpu_get (unsigned int cpu);
+void cpufreq_cpu_put (struct cpufreq_policy *data);
+
 /* cpufreq_sysfs.c */
 extern struct kobj_type			ktype_cpufreq;
 extern struct freq_attr			cpuinfo_cur_freq;
 extern struct freq_attr			scaling_cur_freq;
+
+/* freq_table.c */
+struct cpufreq_frequency_table *cpufreq_frequency_get_table (unsigned int cpu);
drivers/cpufreq/cpufreq_stats.c +2 -0
Index: 2.6.11-rc2+/drivers/cpufreq/cpufreq_stats.c
===================================================================
@@ -20,6 +20,8 @@
 #include <linux/kobject.h>
 #include <linux/spinlock.h>
 
+#include "cpufreq_core.h"
+
 static spinlock_t cpufreq_stats_lock;
 
 #define CPUFREQ_STATDEVICE_ATTR(_name,_mode,_show) \
include/linux/cpufreq.h +0 -8
Index: 2.6.11-rc2+/include/linux/cpufreq.h
===================================================================
@@ -3,9 +3,6 @@
  *
  *  Copyright (C) 2001 Russell King
  *            (C) 2002 - 2003 Dominik Brodowski <[email protected]>
- *            
- *
- * $Id: cpufreq.h,v 1.36 2003/01/20 17:31:48 db Exp $
  *
  * 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
@@ -292,11 +289,6 @@
 				   unsigned int relation,
 				   unsigned int *index);
 
-/* the following 3 funtions are for cpufreq core use only */
-struct cpufreq_frequency_table *cpufreq_frequency_get_table(unsigned int cpu);
-struct cpufreq_policy *cpufreq_cpu_get(unsigned int cpu);
-void   cpufreq_cpu_put (struct cpufreq_policy *data);
-
 /* the following are really really optional */
 extern struct freq_attr cpufreq_freq_attr_scaling_available_freqs;