diff options
| -rw-r--r-- | Documentation/feature-removal-schedule.txt | 10 | ||||
| -rw-r--r-- | drivers/cpufreq/cpufreq.c | 10 | ||||
| -rw-r--r-- | include/linux/cpufreq.h | 5 |
3 files changed, 3 insertions, 22 deletions
diff --git a/Documentation/feature-removal-schedule.txt b/Documentation/feature-removal-schedule.txt index 1571c0c83dba..182bbe49429b 100644 --- a/Documentation/feature-removal-schedule.txt +++ b/Documentation/feature-removal-schedule.txt | |||
| @@ -377,16 +377,6 @@ Who: Eric Paris <eparis@redhat.com> | |||
| 377 | 377 | ||
| 378 | ---------------------------- | 378 | ---------------------------- |
| 379 | 379 | ||
| 380 | What: lock_policy_rwsem_* and unlock_policy_rwsem_* will not be | ||
| 381 | exported interface anymore. | ||
| 382 | When: 2.6.33 | ||
| 383 | Why: cpu_policy_rwsem has a new cleaner definition making it local to | ||
| 384 | cpufreq core and contained inside cpufreq.c. Other dependent | ||
| 385 | drivers should not use it in order to safely avoid lockdep issues. | ||
| 386 | Who: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com> | ||
| 387 | |||
| 388 | ---------------------------- | ||
| 389 | |||
| 390 | What: sound-slot/service-* module aliases and related clutters in | 380 | What: sound-slot/service-* module aliases and related clutters in |
| 391 | sound/sound_core.c | 381 | sound/sound_core.c |
| 392 | When: August 2010 | 382 | When: August 2010 |
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 */ |
diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index 9f15150ce8d6..c3e9de8321c6 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h | |||
| @@ -196,11 +196,6 @@ extern int __cpufreq_driver_getavg(struct cpufreq_policy *policy, | |||
| 196 | int cpufreq_register_governor(struct cpufreq_governor *governor); | 196 | int cpufreq_register_governor(struct cpufreq_governor *governor); |
| 197 | void cpufreq_unregister_governor(struct cpufreq_governor *governor); | 197 | void cpufreq_unregister_governor(struct cpufreq_governor *governor); |
| 198 | 198 | ||
| 199 | int lock_policy_rwsem_read(int cpu); | ||
| 200 | int lock_policy_rwsem_write(int cpu); | ||
| 201 | void unlock_policy_rwsem_read(int cpu); | ||
| 202 | void unlock_policy_rwsem_write(int cpu); | ||
| 203 | |||
| 204 | 199 | ||
| 205 | /********************************************************************* | 200 | /********************************************************************* |
| 206 | * CPUFREQ DRIVER INTERFACE * | 201 | * CPUFREQ DRIVER INTERFACE * |
