2 * linux/include/linux/cpufreq.h
4 * Copyright (C) 2001 Russell King
5 * (C) 2002 - 2003 Dominik Brodowski <linux@brodo.de>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
11 #ifndef _LINUX_CPUFREQ_H
12 #define _LINUX_CPUFREQ_H
14 #include <linux/clk.h>
15 #include <linux/cpumask.h>
16 #include <linux/completion.h>
17 #include <linux/kobject.h>
18 #include <linux/notifier.h>
19 #include <linux/spinlock.h>
20 #include <linux/sysfs.h>
22 /*********************************************************************
24 *********************************************************************/
26 * Frequency values here are CPU kHz
28 * Maximum transition latency is in nanoseconds - if it's unknown,
29 * CPUFREQ_ETERNAL shall be used.
32 #define CPUFREQ_ETERNAL (-1)
33 #define CPUFREQ_NAME_LEN 16
34 /* Print length for names. Extra 1 space for accomodating '\n' in prints */
35 #define CPUFREQ_NAME_PLEN (CPUFREQ_NAME_LEN + 1)
37 struct cpufreq_governor;
39 struct cpufreq_freqs {
40 unsigned int cpu; /* cpu nr */
43 u8 flags; /* flags of cpufreq_driver, see below. */
46 struct cpufreq_cpuinfo {
47 unsigned int max_freq;
48 unsigned int min_freq;
50 /* in 10^(-9) s = nanoseconds */
51 unsigned int transition_latency;
54 struct cpufreq_user_policy {
55 unsigned int min; /* in kHz */
56 unsigned int max; /* in kHz */
59 struct cpufreq_policy {
60 /* CPUs sharing clock, require sw coordination */
61 cpumask_var_t cpus; /* Online CPUs only */
62 cpumask_var_t related_cpus; /* Online + Offline CPUs */
63 cpumask_var_t real_cpus; /* Related and present */
65 unsigned int shared_type; /* ACPI: ANY or ALL affected CPUs
67 unsigned int cpu; /* cpu managing this policy, must be online */
70 struct cpufreq_cpuinfo cpuinfo;/* see above */
72 unsigned int min; /* in kHz */
73 unsigned int max; /* in kHz */
74 unsigned int cur; /* in kHz, only needed if cpufreq
75 * governors are used */
76 unsigned int restore_freq; /* = policy->cur before transition */
77 unsigned int suspend_freq; /* freq to set during suspend */
79 unsigned int policy; /* see above */
80 unsigned int last_policy; /* policy before unplug */
81 struct cpufreq_governor *governor; /* see below */
83 bool governor_enabled; /* governor start/stop flag */
84 char last_governor[CPUFREQ_NAME_LEN]; /* last governor used */
86 struct work_struct update; /* if update_policy() needs to be
87 * called, but you're in IRQ context */
89 struct cpufreq_user_policy user_policy;
90 struct cpufreq_frequency_table *freq_table;
92 struct list_head policy_list;
94 struct completion kobj_unregister;
97 * The rules for this semaphore:
98 * - Any routine that wants to read from the policy structure will
99 * do a down_read on this semaphore.
100 * - Any routine that will write to the policy structure and/or may take away
101 * the policy altogether (eg. CPU hotplug), will hold this lock in write
102 * mode before doing so.
105 * - Lock should not be held across
106 * __cpufreq_governor(data, CPUFREQ_GOV_POLICY_EXIT);
108 struct rw_semaphore rwsem;
113 * - fast_switch_possible should be set by the driver if it can
114 * guarantee that frequency can be changed on any CPU sharing the
115 * policy and that the change will affect all of the policy CPUs then.
116 * - fast_switch_enabled is to be set by governors that support fast
117 * freqnency switching with the help of cpufreq_enable_fast_switch().
119 bool fast_switch_possible;
120 bool fast_switch_enabled;
123 * Preferred average time interval between consecutive invocations of
124 * the driver to set the frequency for this policy. To be set by the
125 * scaling driver (0, which is the default, means no preference).
127 unsigned int up_transition_delay_us;
128 unsigned int down_transition_delay_us;
130 /* Cached frequency lookup from cpufreq_driver_resolve_freq. */
131 unsigned int cached_target_freq;
132 int cached_resolved_idx;
134 /* Synchronization for frequency transitions */
135 bool transition_ongoing; /* Tracks transition status */
136 spinlock_t transition_lock;
137 wait_queue_head_t transition_wait;
138 struct task_struct *transition_task; /* Task which is doing the transition */
141 struct cpufreq_stats *stats;
143 /* For cpufreq driver's internal use */
148 #define CPUFREQ_SHARED_TYPE_NONE (0) /* None */
149 #define CPUFREQ_SHARED_TYPE_HW (1) /* HW does needed coordination */
150 #define CPUFREQ_SHARED_TYPE_ALL (2) /* All dependent CPUs should set freq */
151 #define CPUFREQ_SHARED_TYPE_ANY (3) /* Freq can be set from any dependent CPU*/
153 #ifdef CONFIG_CPU_FREQ
154 struct cpufreq_policy *cpufreq_cpu_get_raw(unsigned int cpu);
155 struct cpufreq_policy *cpufreq_cpu_get(unsigned int cpu);
156 void cpufreq_cpu_put(struct cpufreq_policy *policy);
158 static inline struct cpufreq_policy *cpufreq_cpu_get_raw(unsigned int cpu)
162 static inline struct cpufreq_policy *cpufreq_cpu_get(unsigned int cpu)
166 static inline void cpufreq_cpu_put(struct cpufreq_policy *policy) { }
169 static inline bool policy_is_shared(struct cpufreq_policy *policy)
171 return cpumask_weight(policy->cpus) > 1;
174 /* /sys/devices/system/cpu/cpufreq: entry point for global variables */
175 extern struct kobject *cpufreq_global_kobject;
177 #ifdef CONFIG_CPU_FREQ
178 unsigned int cpufreq_get(unsigned int cpu);
179 unsigned int cpufreq_quick_get(unsigned int cpu);
180 unsigned int cpufreq_quick_get_max(unsigned int cpu);
181 void disable_cpufreq(void);
183 u64 get_cpu_idle_time(unsigned int cpu, u64 *wall, int io_busy);
184 int cpufreq_get_policy(struct cpufreq_policy *policy, unsigned int cpu);
185 int cpufreq_update_policy(unsigned int cpu);
186 bool have_governor_per_policy(void);
187 bool cpufreq_driver_is_slow(void);
188 struct kobject *get_governor_parent_kobj(struct cpufreq_policy *policy);
190 static inline unsigned int cpufreq_get(unsigned int cpu)
194 static inline unsigned int cpufreq_quick_get(unsigned int cpu)
198 static inline unsigned int cpufreq_quick_get_max(unsigned int cpu)
202 static inline void disable_cpufreq(void) { }
205 /*********************************************************************
206 * CPUFREQ DRIVER INTERFACE *
207 *********************************************************************/
209 #define CPUFREQ_RELATION_L 0 /* lowest frequency at or above target */
210 #define CPUFREQ_RELATION_H 1 /* highest frequency below or at target */
211 #define CPUFREQ_RELATION_C 2 /* closest frequency to target */
214 struct attribute attr;
215 ssize_t (*show)(struct cpufreq_policy *, char *);
216 ssize_t (*store)(struct cpufreq_policy *, const char *, size_t count);
219 #define cpufreq_freq_attr_ro(_name) \
220 static struct freq_attr _name = \
221 __ATTR(_name, 0444, show_##_name, NULL)
223 #define cpufreq_freq_attr_ro_perm(_name, _perm) \
224 static struct freq_attr _name = \
225 __ATTR(_name, _perm, show_##_name, NULL)
227 #define cpufreq_freq_attr_rw(_name) \
228 static struct freq_attr _name = \
229 __ATTR(_name, 0644, show_##_name, store_##_name)
231 #define define_one_global_ro(_name) \
232 static struct kobj_attribute _name = \
233 __ATTR(_name, 0444, show_##_name, NULL)
235 #define define_one_global_rw(_name) \
236 static struct kobj_attribute _name = \
237 __ATTR(_name, 0644, show_##_name, store_##_name)
240 struct cpufreq_driver {
241 char name[CPUFREQ_NAME_LEN];
245 /* needed by all drivers */
246 int (*init)(struct cpufreq_policy *policy);
247 int (*verify)(struct cpufreq_policy *policy);
249 /* define one out of two */
250 int (*setpolicy)(struct cpufreq_policy *policy);
253 * On failure, should always restore frequency to policy->restore_freq
256 int (*target)(struct cpufreq_policy *policy,
257 unsigned int target_freq,
258 unsigned int relation); /* Deprecated */
259 int (*target_index)(struct cpufreq_policy *policy,
262 * Only for drivers with target_index() and CPUFREQ_ASYNC_NOTIFICATION
265 * get_intermediate should return a stable intermediate frequency
266 * platform wants to switch to and target_intermediate() should set CPU
267 * to to that frequency, before jumping to the frequency corresponding
268 * to 'index'. Core will take care of sending notifications and driver
269 * doesn't have to handle them in target_intermediate() or
272 * Drivers can return '0' from get_intermediate() in case they don't
273 * wish to switch to intermediate frequency for some target frequency.
274 * In that case core will directly call ->target_index().
276 unsigned int (*get_intermediate)(struct cpufreq_policy *policy,
278 int (*target_intermediate)(struct cpufreq_policy *policy,
281 /* should be defined, if possible */
282 unsigned int (*get)(unsigned int cpu);
285 int (*bios_limit)(int cpu, unsigned int *limit);
287 int (*exit)(struct cpufreq_policy *policy);
288 void (*stop_cpu)(struct cpufreq_policy *policy);
289 int (*suspend)(struct cpufreq_policy *policy);
290 int (*resume)(struct cpufreq_policy *policy);
292 /* Will be called after the driver is fully initialized */
293 void (*ready)(struct cpufreq_policy *policy);
295 struct freq_attr **attr;
297 /* platform specific boost support code */
298 bool boost_supported;
300 int (*set_boost)(int state);
304 #define CPUFREQ_STICKY (1 << 0) /* driver isn't removed even if
305 all ->init() calls failed */
306 #define CPUFREQ_CONST_LOOPS (1 << 1) /* loops_per_jiffy or other
307 kernel "constants" aren't
308 affected by frequency
310 #define CPUFREQ_PM_NO_WARN (1 << 2) /* don't warn on suspend/resume
314 * This should be set by platforms having multiple clock-domains, i.e.
315 * supporting multiple policies. With this sysfs directories of governor would
316 * be created in cpu/cpu<num>/cpufreq/ directory and so they can use the same
317 * governor with different tunables for different clusters.
319 #define CPUFREQ_HAVE_GOVERNOR_PER_POLICY (1 << 3)
322 * Driver will do POSTCHANGE notifications from outside of their ->target()
323 * routine and so must set cpufreq_driver->flags with this flag, so that core
324 * can handle them specially.
326 #define CPUFREQ_ASYNC_NOTIFICATION (1 << 4)
329 * Set by drivers which want cpufreq core to check if CPU is running at a
330 * frequency present in freq-table exposed by the driver. For these drivers if
331 * CPU is found running at an out of table freq, we will try to set it to a freq
332 * from the table. And if that fails, we will stop further boot process by
333 * issuing a BUG_ON().
335 #define CPUFREQ_NEED_INITIAL_FREQ_CHECK (1 << 5)
338 * Indicates that it is safe to call cpufreq_driver_target from
339 * non-interruptable context in scheduler hot paths. Drivers must
340 * opt-in to this flag, as the safe default is that they might sleep
341 * or be too slow for hot path use.
343 #define CPUFREQ_DRIVER_FAST (1 << 6)
345 int cpufreq_register_driver(struct cpufreq_driver *driver_data);
346 int cpufreq_unregister_driver(struct cpufreq_driver *driver_data);
348 const char *cpufreq_get_current_driver(void);
349 void *cpufreq_get_driver_data(void);
351 static inline void cpufreq_verify_within_limits(struct cpufreq_policy *policy,
352 unsigned int min, unsigned int max)
354 if (policy->min < min)
356 if (policy->max < min)
358 if (policy->min > max)
360 if (policy->max > max)
362 if (policy->min > policy->max)
363 policy->min = policy->max;
368 cpufreq_verify_within_cpu_limits(struct cpufreq_policy *policy)
370 cpufreq_verify_within_limits(policy, policy->cpuinfo.min_freq,
371 policy->cpuinfo.max_freq);
374 #ifdef CONFIG_CPU_FREQ
375 void cpufreq_suspend(void);
376 void cpufreq_resume(void);
377 int cpufreq_generic_suspend(struct cpufreq_policy *policy);
379 static inline void cpufreq_suspend(void) {}
380 static inline void cpufreq_resume(void) {}
383 /*********************************************************************
384 * CPUFREQ NOTIFIER INTERFACE *
385 *********************************************************************/
387 #define CPUFREQ_TRANSITION_NOTIFIER (0)
388 #define CPUFREQ_POLICY_NOTIFIER (1)
389 #define CPUFREQ_GOVINFO_NOTIFIER (2)
391 /* Transition notifiers */
392 #define CPUFREQ_PRECHANGE (0)
393 #define CPUFREQ_POSTCHANGE (1)
395 /* Policy Notifiers */
396 #define CPUFREQ_ADJUST (0)
397 #define CPUFREQ_NOTIFY (1)
398 #define CPUFREQ_START (2)
399 #define CPUFREQ_CREATE_POLICY (3)
400 #define CPUFREQ_REMOVE_POLICY (4)
402 /* Govinfo Notifiers */
403 #define CPUFREQ_LOAD_CHANGE (0)
405 #ifdef CONFIG_CPU_FREQ
406 int cpufreq_register_notifier(struct notifier_block *nb, unsigned int list);
407 int cpufreq_unregister_notifier(struct notifier_block *nb, unsigned int list);
409 void cpufreq_freq_transition_begin(struct cpufreq_policy *policy,
410 struct cpufreq_freqs *freqs);
411 void cpufreq_freq_transition_end(struct cpufreq_policy *policy,
412 struct cpufreq_freqs *freqs, int transition_failed);
414 * Governor specific info that can be passed to modules that subscribe
415 * to CPUFREQ_GOVINFO_NOTIFIER
417 struct cpufreq_govinfo {
420 unsigned int sampling_rate_us;
422 extern struct atomic_notifier_head cpufreq_govinfo_notifier_list;
424 #else /* CONFIG_CPU_FREQ */
425 static inline int cpufreq_register_notifier(struct notifier_block *nb,
430 static inline int cpufreq_unregister_notifier(struct notifier_block *nb,
435 #endif /* !CONFIG_CPU_FREQ */
438 * cpufreq_scale - "old * mult / div" calculation for large values (32-bit-arch
445 * new = old * mult / div
447 static inline unsigned long cpufreq_scale(unsigned long old, u_int div,
450 #if BITS_PER_LONG == 32
451 u64 result = ((u64) old) * ((u64) mult);
453 return (unsigned long) result;
455 #elif BITS_PER_LONG == 64
456 unsigned long result = old * ((u64) mult);
462 /*********************************************************************
463 * CPUFREQ GOVERNORS *
464 *********************************************************************/
467 * If (cpufreq_driver->target) exists, the ->governor decides what frequency
468 * within the limits is used. If (cpufreq_driver->setpolicy> exists, these
469 * two generic policies are available:
471 #define CPUFREQ_POLICY_POWERSAVE (1)
472 #define CPUFREQ_POLICY_PERFORMANCE (2)
474 /* Governor Events */
475 #define CPUFREQ_GOV_START 1
476 #define CPUFREQ_GOV_STOP 2
477 #define CPUFREQ_GOV_LIMITS 3
478 #define CPUFREQ_GOV_POLICY_INIT 4
479 #define CPUFREQ_GOV_POLICY_EXIT 5
481 struct cpufreq_governor {
482 char name[CPUFREQ_NAME_LEN];
484 int (*governor) (struct cpufreq_policy *policy,
486 ssize_t (*show_setspeed) (struct cpufreq_policy *policy,
488 int (*store_setspeed) (struct cpufreq_policy *policy,
490 unsigned int max_transition_latency; /* HW must be able to switch to
491 next freq faster than this value in nano secs or we
492 will fallback to performance governor */
493 struct list_head governor_list;
494 struct module *owner;
497 /* Pass a target to the cpufreq driver */
498 int cpufreq_driver_target(struct cpufreq_policy *policy,
499 unsigned int target_freq,
500 unsigned int relation);
501 int __cpufreq_driver_target(struct cpufreq_policy *policy,
502 unsigned int target_freq,
503 unsigned int relation);
504 unsigned int cpufreq_driver_resolve_freq(struct cpufreq_policy *policy,
505 unsigned int target_freq);
506 int cpufreq_register_governor(struct cpufreq_governor *governor);
507 void cpufreq_unregister_governor(struct cpufreq_governor *governor);
509 /* CPUFREQ DEFAULT GOVERNOR */
511 * Performance governor is fallback governor if any other gov failed to auto
512 * load due latency restrictions
514 #ifdef CONFIG_CPU_FREQ_GOV_PERFORMANCE
515 extern struct cpufreq_governor cpufreq_gov_performance;
517 #ifdef CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE
518 #define CPUFREQ_DEFAULT_GOVERNOR (&cpufreq_gov_performance)
519 #elif defined(CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE)
520 extern struct cpufreq_governor cpufreq_gov_powersave;
521 #define CPUFREQ_DEFAULT_GOVERNOR (&cpufreq_gov_powersave)
522 #elif defined(CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE)
523 extern struct cpufreq_governor cpufreq_gov_userspace;
524 #define CPUFREQ_DEFAULT_GOVERNOR (&cpufreq_gov_userspace)
525 #elif defined(CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND)
526 extern struct cpufreq_governor cpufreq_gov_ondemand;
527 #define CPUFREQ_DEFAULT_GOVERNOR (&cpufreq_gov_ondemand)
528 #elif defined(CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE)
529 extern struct cpufreq_governor cpufreq_gov_conservative;
530 #define CPUFREQ_DEFAULT_GOVERNOR (&cpufreq_gov_conservative)
531 #elif defined(CONFIG_CPU_FREQ_DEFAULT_GOV_INTERACTIVE)
532 extern struct cpufreq_governor cpufreq_gov_interactive;
533 #define CPUFREQ_DEFAULT_GOVERNOR (&cpufreq_gov_interactive)
534 #elif defined(CONFIG_CPU_FREQ_DEFAULT_GOV_SCHED)
535 extern struct cpufreq_governor cpufreq_gov_sched;
536 #define CPUFREQ_DEFAULT_GOVERNOR (&cpufreq_gov_sched)
537 #elif defined(CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL)
538 extern struct cpufreq_governor cpufreq_gov_schedutil;
539 #define CPUFREQ_DEFAULT_GOVERNOR (&cpufreq_gov_schedutil)
542 static inline void cpufreq_policy_apply_limits(struct cpufreq_policy *policy)
544 if (policy->max < policy->cur)
545 __cpufreq_driver_target(policy, policy->max, CPUFREQ_RELATION_H);
546 else if (policy->min > policy->cur)
547 __cpufreq_driver_target(policy, policy->min, CPUFREQ_RELATION_L);
550 /* Governor attribute set */
551 struct gov_attr_set {
553 struct list_head policy_list;
554 struct mutex update_lock;
558 /* sysfs ops for cpufreq governors */
559 extern const struct sysfs_ops governor_sysfs_ops;
561 void gov_attr_set_init(struct gov_attr_set *attr_set, struct list_head *list_node);
562 void gov_attr_set_get(struct gov_attr_set *attr_set, struct list_head *list_node);
563 unsigned int gov_attr_set_put(struct gov_attr_set *attr_set, struct list_head *list_node);
565 /* Governor sysfs attribute */
566 struct governor_attr {
567 struct attribute attr;
568 ssize_t (*show)(struct gov_attr_set *attr_set, char *buf);
569 ssize_t (*store)(struct gov_attr_set *attr_set, const char *buf,
573 /*********************************************************************
574 * FREQUENCY TABLE HELPERS *
575 *********************************************************************/
577 /* Special Values of .frequency field */
578 #define CPUFREQ_ENTRY_INVALID ~0u
579 #define CPUFREQ_TABLE_END ~1u
580 /* Special Values of .flags field */
581 #define CPUFREQ_BOOST_FREQ (1 << 0)
583 struct cpufreq_frequency_table {
585 unsigned int driver_data; /* driver specific data, not used by core */
586 unsigned int frequency; /* kHz - doesn't need to be in ascending
590 #if defined(CONFIG_CPU_FREQ) && defined(CONFIG_PM_OPP)
591 int dev_pm_opp_init_cpufreq_table(struct device *dev,
592 struct cpufreq_frequency_table **table);
593 void dev_pm_opp_free_cpufreq_table(struct device *dev,
594 struct cpufreq_frequency_table **table);
596 static inline int dev_pm_opp_init_cpufreq_table(struct device *dev,
597 struct cpufreq_frequency_table
603 static inline void dev_pm_opp_free_cpufreq_table(struct device *dev,
604 struct cpufreq_frequency_table
610 static inline bool cpufreq_next_valid(struct cpufreq_frequency_table **pos)
612 while ((*pos)->frequency != CPUFREQ_TABLE_END)
613 if ((*pos)->frequency != CPUFREQ_ENTRY_INVALID)
621 * cpufreq_for_each_entry - iterate over a cpufreq_frequency_table
622 * @pos: the cpufreq_frequency_table * to use as a loop cursor.
623 * @table: the cpufreq_frequency_table * to iterate over.
626 #define cpufreq_for_each_entry(pos, table) \
627 for (pos = table; pos->frequency != CPUFREQ_TABLE_END; pos++)
630 * cpufreq_for_each_valid_entry - iterate over a cpufreq_frequency_table
631 * excluding CPUFREQ_ENTRY_INVALID frequencies.
632 * @pos: the cpufreq_frequency_table * to use as a loop cursor.
633 * @table: the cpufreq_frequency_table * to iterate over.
636 #define cpufreq_for_each_valid_entry(pos, table) \
637 for (pos = table; cpufreq_next_valid(&pos); pos++)
639 int cpufreq_frequency_table_cpuinfo(struct cpufreq_policy *policy,
640 struct cpufreq_frequency_table *table);
642 int cpufreq_frequency_table_verify(struct cpufreq_policy *policy,
643 struct cpufreq_frequency_table *table);
644 int cpufreq_generic_frequency_table_verify(struct cpufreq_policy *policy);
646 int cpufreq_frequency_table_target(struct cpufreq_policy *policy,
647 struct cpufreq_frequency_table *table,
648 unsigned int target_freq,
649 unsigned int relation,
650 unsigned int *index);
651 int cpufreq_frequency_table_get_index(struct cpufreq_policy *policy,
654 ssize_t cpufreq_show_cpus(const struct cpumask *mask, char *buf);
656 #ifdef CONFIG_CPU_FREQ
657 int cpufreq_boost_trigger_state(int state);
658 int cpufreq_boost_supported(void);
659 int cpufreq_boost_enabled(void);
660 int cpufreq_enable_boost_support(void);
661 bool policy_has_boost_freq(struct cpufreq_policy *policy);
663 static inline int cpufreq_boost_trigger_state(int state)
667 static inline int cpufreq_boost_supported(void)
671 static inline int cpufreq_boost_enabled(void)
676 static inline int cpufreq_enable_boost_support(void)
681 static inline bool policy_has_boost_freq(struct cpufreq_policy *policy)
686 /* the following funtion is for cpufreq core use only */
687 struct cpufreq_frequency_table *cpufreq_frequency_get_table(unsigned int cpu);
689 /* the following are really really optional */
690 extern struct freq_attr cpufreq_freq_attr_scaling_available_freqs;
691 extern struct freq_attr cpufreq_freq_attr_scaling_boost_freqs;
692 extern struct freq_attr *cpufreq_generic_attr[];
693 int cpufreq_table_validate_and_show(struct cpufreq_policy *policy,
694 struct cpufreq_frequency_table *table);
696 unsigned int cpufreq_generic_get(unsigned int cpu);
697 int cpufreq_generic_init(struct cpufreq_policy *policy,
698 struct cpufreq_frequency_table *table,
699 unsigned int transition_latency);
702 unsigned long cpufreq_scale_freq_capacity(struct sched_domain *sd, int cpu);
703 unsigned long cpufreq_scale_max_freq_capacity(int cpu);
704 #endif /* _LINUX_CPUFREQ_H */