aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/cpufreq.c
diff options
context:
space:
mode:
authorAmerigo Wang <amwang@redhat.com>2010-03-04 03:23:36 -0500
committerDave Jones <davej@redhat.com>2010-08-03 13:47:04 -0400
commit226528c6100e4191842e61997110c8ace40605f7 (patch)
treea731b7e1755db2eeb4322e23ef7f9c8cff21dda6 /drivers/cpufreq/cpufreq.c
parent00e299fff3cc2745847b03eebcc9e9362db9366d (diff)
[CPUFREQ] unexport (un)lock_policy_rwsem* functions
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>
Diffstat (limited to 'drivers/cpufreq/cpufreq.c')
-rw-r--r--drivers/cpufreq/cpufreq.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c
index 938b74ea9ffb..40877d219081 100644
--- a/drivers/cpufreq/cpufreq.c
+++ b/drivers/cpufreq/cpufreq.c
@@ -68,7 +68,7 @@ static DEFINE_PER_CPU(int, cpufreq_policy_cpu);
68static DEFINE_PER_CPU(struct rw_semaphore, cpu_policy_rwsem); 68static DEFINE_PER_CPU(struct rw_semaphore, cpu_policy_rwsem);
69 69
70#define lock_policy_rwsem(mode, cpu) \ 70#define lock_policy_rwsem(mode, cpu) \
71int lock_policy_rwsem_##mode \ 71static int lock_policy_rwsem_##mode \
72(int cpu) \ 72(int cpu) \
73{ \ 73{ \
74 int policy_cpu = per_cpu(cpufreq_policy_cpu, cpu); \ 74 int policy_cpu = per_cpu(cpufreq_policy_cpu, cpu); \
@@ -83,26 +83,22 @@ int lock_policy_rwsem_##mode \
83} 83}
84 84
85lock_policy_rwsem(read, cpu); 85lock_policy_rwsem(read, cpu);
86EXPORT_SYMBOL_GPL(lock_policy_rwsem_read);
87 86
88lock_policy_rwsem(write, cpu); 87lock_policy_rwsem(write, cpu);
89EXPORT_SYMBOL_GPL(lock_policy_rwsem_write);
90 88
91void unlock_policy_rwsem_read(int cpu) 89static void unlock_policy_rwsem_read(int cpu)
92{ 90{
93 int policy_cpu = per_cpu(cpufreq_policy_cpu, cpu); 91 int policy_cpu = per_cpu(cpufreq_policy_cpu, cpu);
94 BUG_ON(policy_cpu == -1); 92 BUG_ON(policy_cpu == -1);
95 up_read(&per_cpu(cpu_policy_rwsem, policy_cpu)); 93 up_read(&per_cpu(cpu_policy_rwsem, policy_cpu));
96} 94}
97EXPORT_SYMBOL_GPL(unlock_policy_rwsem_read);
98 95
99void unlock_policy_rwsem_write(int cpu) 96static void unlock_policy_rwsem_write(int cpu)
100{ 97{
101 int policy_cpu = per_cpu(cpufreq_policy_cpu, cpu); 98 int policy_cpu = per_cpu(cpufreq_policy_cpu, cpu);
102 BUG_ON(policy_cpu == -1); 99 BUG_ON(policy_cpu == -1);
103 up_write(&per_cpu(cpu_policy_rwsem, policy_cpu)); 100 up_write(&per_cpu(cpu_policy_rwsem, policy_cpu));
104} 101}
105EXPORT_SYMBOL_GPL(unlock_policy_rwsem_write);
106 102
107 103
108/* internal prototypes */ 104/* internal prototypes */