diff options
author | Amerigo Wang <amwang@redhat.com> | 2010-03-04 03:23:36 -0500 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2010-08-03 13:47:04 -0400 |
commit | 226528c6100e4191842e61997110c8ace40605f7 (patch) | |
tree | a731b7e1755db2eeb4322e23ef7f9c8cff21dda6 /drivers/cpufreq | |
parent | 00e299fff3cc2745847b03eebcc9e9362db9366d (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')
-rw-r--r-- | drivers/cpufreq/cpufreq.c | 10 |
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); | |||
68 | static DEFINE_PER_CPU(struct rw_semaphore, cpu_policy_rwsem); | 68 | static 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) \ |
71 | int lock_policy_rwsem_##mode \ | 71 | static 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 | ||
85 | lock_policy_rwsem(read, cpu); | 85 | lock_policy_rwsem(read, cpu); |
86 | EXPORT_SYMBOL_GPL(lock_policy_rwsem_read); | ||
87 | 86 | ||
88 | lock_policy_rwsem(write, cpu); | 87 | lock_policy_rwsem(write, cpu); |
89 | EXPORT_SYMBOL_GPL(lock_policy_rwsem_write); | ||
90 | 88 | ||
91 | void unlock_policy_rwsem_read(int cpu) | 89 | static 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 | } |
97 | EXPORT_SYMBOL_GPL(unlock_policy_rwsem_read); | ||
98 | 95 | ||
99 | void unlock_policy_rwsem_write(int cpu) | 96 | static 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 | } |
105 | EXPORT_SYMBOL_GPL(unlock_policy_rwsem_write); | ||
106 | 102 | ||
107 | 103 | ||
108 | /* internal prototypes */ | 104 | /* internal prototypes */ |