[CPUFREQ] unexport (un)lock_policy_rwsem* functions
authorAmerigo Wang <amwang@redhat.com>
Thu, 4 Mar 2010 08:23:36 +0000 (03:23 -0500)
committerDave Jones <davej@redhat.com>
Tue, 3 Aug 2010 17:47:04 +0000 (13:47 -0400)
lock_policy_rwsem_* and unlock_policy_rwsem_* functions are scheduled
to be unexported when 2.6.33. Now there are no other callers of them
out of cpufreq.c, unexport them and make them static.

Signed-off-by: WANG Cong <amwang@redhat.com>
Cc: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: Dave Jones <davej@redhat.com>
Documentation/feature-removal-schedule.txt
drivers/cpufreq/cpufreq.c
include/linux/cpufreq.h

index 1571c0c83dba0b0876ea52e4ff85ff69a56dab87..182bbe49429b13b83f7452b156bce9c93419a5d6 100644 (file)
@@ -377,16 +377,6 @@ Who:       Eric Paris <eparis@redhat.com>
 
 ----------------------------
 
-What:  lock_policy_rwsem_* and unlock_policy_rwsem_* will not be
-       exported interface anymore.
-When:  2.6.33
-Why:   cpu_policy_rwsem has a new cleaner definition making it local to
-       cpufreq core and contained inside cpufreq.c. Other dependent
-       drivers should not use it in order to safely avoid lockdep issues.
-Who:   Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
-
-----------------------------
-
 What:  sound-slot/service-* module aliases and related clutters in
        sound/sound_core.c
 When:  August 2010
index 938b74ea9ffbee8e6c195baa2eae97520c7a07cb..40877d2190819dd6e0dcf189e7ed25ce7465f2b8 100644 (file)
@@ -68,7 +68,7 @@ static DEFINE_PER_CPU(int, cpufreq_policy_cpu);
 static DEFINE_PER_CPU(struct rw_semaphore, cpu_policy_rwsem);
 
 #define lock_policy_rwsem(mode, cpu)                                   \
-int lock_policy_rwsem_##mode                                           \
+static int lock_policy_rwsem_##mode                                    \
 (int cpu)                                                              \
 {                                                                      \
        int policy_cpu = per_cpu(cpufreq_policy_cpu, cpu);              \
@@ -83,26 +83,22 @@ int lock_policy_rwsem_##mode                                                \
 }
 
 lock_policy_rwsem(read, cpu);
-EXPORT_SYMBOL_GPL(lock_policy_rwsem_read);
 
 lock_policy_rwsem(write, cpu);
-EXPORT_SYMBOL_GPL(lock_policy_rwsem_write);
 
-void unlock_policy_rwsem_read(int cpu)
+static void unlock_policy_rwsem_read(int cpu)
 {
        int policy_cpu = per_cpu(cpufreq_policy_cpu, cpu);
        BUG_ON(policy_cpu == -1);
        up_read(&per_cpu(cpu_policy_rwsem, policy_cpu));
 }
-EXPORT_SYMBOL_GPL(unlock_policy_rwsem_read);
 
-void unlock_policy_rwsem_write(int cpu)
+static void unlock_policy_rwsem_write(int cpu)
 {
        int policy_cpu = per_cpu(cpufreq_policy_cpu, cpu);
        BUG_ON(policy_cpu == -1);
        up_write(&per_cpu(cpu_policy_rwsem, policy_cpu));
 }
-EXPORT_SYMBOL_GPL(unlock_policy_rwsem_write);
 
 
 /* internal prototypes */
index 9f15150ce8d67d46415de9c009c17607008c213c..c3e9de8321c6a24b54f35cf2a0450086693265a7 100644 (file)
@@ -196,11 +196,6 @@ extern int __cpufreq_driver_getavg(struct cpufreq_policy *policy,
 int cpufreq_register_governor(struct cpufreq_governor *governor);
 void cpufreq_unregister_governor(struct cpufreq_governor *governor);
 
-int lock_policy_rwsem_read(int cpu);
-int lock_policy_rwsem_write(int cpu);
-void unlock_policy_rwsem_read(int cpu);
-void unlock_policy_rwsem_write(int cpu);
-
 
 /*********************************************************************
  *                      CPUFREQ DRIVER INTERFACE                     *