diff options
| author | Linus Torvalds <torvalds@home.osdl.org> | 2003-09-09 00:38:31 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.osdl.org> | 2003-09-09 00:38:31 -0700 |
| commit | 5be1676c2f6f17482b19d300a4cfbadf30bbf683 (patch) | |
| tree | 80e5753e027116eab505a65e3ecc9fc94c464ad5 /include/linux | |
| parent | 2e926a15c9759980abb4d540723d605b9225f037 (diff) | |
| parent | 5f27f4614e37155d0d5efab61140e30bef1e83f1 (diff) | |
Merge bk://linux-dj.bkbits.net/cpufreq
into home.osdl.org:/home/torvalds/v2.5/linux
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/cpufreq.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index d2403e44ff07..51790ee0ed6c 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h @@ -60,6 +60,13 @@ struct cpufreq_cpuinfo { unsigned int transition_latency; /* in 10^(-9) s */ }; +struct cpufreq_real_policy { + unsigned int min; /* in kHz */ + unsigned int max; /* in kHz */ + unsigned int policy; /* see above */ + struct cpufreq_governor *governor; /* see below */ +}; + struct cpufreq_policy { unsigned int cpu; /* cpu nr */ struct cpufreq_cpuinfo cpuinfo;/* see above */ @@ -74,6 +81,8 @@ struct cpufreq_policy { struct semaphore lock; /* CPU ->setpolicy or ->target may only be called once a time */ + struct cpufreq_real_policy user_policy; + struct kobject kobj; struct completion kobj_unregister; }; @@ -217,6 +226,7 @@ struct freq_attr { *********************************************************************/ int cpufreq_set_policy(struct cpufreq_policy *policy); int cpufreq_get_policy(struct cpufreq_policy *policy, unsigned int cpu); +int cpufreq_update_policy(unsigned int cpu); /* the proc_intf.c needs this */ int cpufreq_parse_governor (char *str_governor, unsigned int *policy, struct cpufreq_governor **governor); |
