|
@@ -32,15 +32,7 @@
|
|
|
* CPUFREQ NOTIFIER INTERFACE *
|
|
|
*********************************************************************/
|
|
|
|
|
|
-#ifdef CONFIG_CPU_FREQ
|
|
|
int cpufreq_register_notifier(struct notifier_block *nb, unsigned int list);
|
|
|
-#else
|
|
|
-static inline int cpufreq_register_notifier(struct notifier_block *nb,
|
|
|
- unsigned int list)
|
|
|
-{
|
|
|
- return 0;
|
|
|
-}
|
|
|
-#endif
|
|
|
int cpufreq_unregister_notifier(struct notifier_block *nb, unsigned int list);
|
|
|
|
|
|
#define CPUFREQ_TRANSITION_NOTIFIER (0)
|
|
@@ -268,22 +260,17 @@ struct freq_attr {
|
|
|
int cpufreq_get_policy(struct cpufreq_policy *policy, unsigned int cpu);
|
|
|
int cpufreq_update_policy(unsigned int cpu);
|
|
|
|
|
|
+/* query the current CPU frequency (in kHz). If zero, cpufreq couldn't detect it */
|
|
|
+unsigned int cpufreq_get(unsigned int cpu);
|
|
|
|
|
|
-/*
|
|
|
- * query the last known CPU freq (in kHz). If zero, cpufreq couldn't detect it
|
|
|
- */
|
|
|
+/* query the last known CPU freq (in kHz). If zero, cpufreq couldn't detect it */
|
|
|
#ifdef CONFIG_CPU_FREQ
|
|
|
unsigned int cpufreq_quick_get(unsigned int cpu);
|
|
|
-unsigned int cpufreq_get(unsigned int cpu);
|
|
|
#else
|
|
|
static inline unsigned int cpufreq_quick_get(unsigned int cpu)
|
|
|
{
|
|
|
return 0;
|
|
|
}
|
|
|
-static inline unsigned int cpufreq_get(unsigned int cpu)
|
|
|
-{
|
|
|
- return 0;
|
|
|
-}
|
|
|
#endif
|
|
|
|
|
|
|