@@ -255,51 +255,6 @@ void cpufreq_cpu_put(struct cpufreq_policy *policy)
255
255
}
256
256
EXPORT_SYMBOL_GPL (cpufreq_cpu_put );
257
257
258
- /**
259
- * cpufreq_cpu_release - Unlock a policy and decrement its usage counter.
260
- * @policy: cpufreq policy returned by cpufreq_cpu_acquire().
261
- */
262
- void cpufreq_cpu_release (struct cpufreq_policy * policy )
263
- {
264
- if (WARN_ON (!policy ))
265
- return ;
266
-
267
- lockdep_assert_held (& policy -> rwsem );
268
-
269
- up_write (& policy -> rwsem );
270
-
271
- cpufreq_cpu_put (policy );
272
- }
273
-
274
- /**
275
- * cpufreq_cpu_acquire - Find policy for a CPU, mark it as busy and lock it.
276
- * @cpu: CPU to find the policy for.
277
- *
278
- * Call cpufreq_cpu_get() to get a reference on the cpufreq policy for @cpu and
279
- * if the policy returned by it is not NULL, acquire its rwsem for writing.
280
- * Return the policy if it is active or release it and return NULL otherwise.
281
- *
282
- * The policy returned by this function has to be released with the help of
283
- * cpufreq_cpu_release() in order to release its rwsem and balance its usage
284
- * counter properly.
285
- */
286
- struct cpufreq_policy * cpufreq_cpu_acquire (unsigned int cpu )
287
- {
288
- struct cpufreq_policy * policy = cpufreq_cpu_get (cpu );
289
-
290
- if (!policy )
291
- return NULL ;
292
-
293
- down_write (& policy -> rwsem );
294
-
295
- if (policy_is_inactive (policy )) {
296
- cpufreq_cpu_release (policy );
297
- return NULL ;
298
- }
299
-
300
- return policy ;
301
- }
302
-
303
258
/*********************************************************************
304
259
* EXTERNALLY AFFECTING FREQUENCY CHANGES *
305
260
*********************************************************************/
0 commit comments