~ressu/+junk/xen-debian

« back to all changes in this revision

Viewing changes to xen/include/acpi/cpufreq/cpufreq.h

  • Committer: sami at haahtinen
  • Author(s): Bastian Blank
  • Date: 2011-03-17 14:12:45 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: sami@haahtinen.name-20110317141245-owgqox0l0p3g5857
Tags: 4.1.0~rc6-1
* New upstream release candidate.
* Build documentation using pdflatex.
* Use python 2.6. (closes: #596545)
* Fix lintian override.
* Install new tools: xl, xenpaging.
* Enable blktap2.
  - Use own md5 implementation.
  - Fix includes.
  - Fix linking of blktap2 binaries.
  - Remove optimization setting.
* Temporarily disable hvmloader, wants to download ipxe.
* Remove xenstored pid check from xl.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
struct acpi_cpufreq_data {
30
30
    struct processor_performance *acpi_data;
31
31
    struct cpufreq_frequency_table *freq_table;
32
 
    unsigned int max_freq;
33
32
    unsigned int cpu_feature;
34
33
};
35
34
 
53
52
                                 * governors are used */
54
53
    struct cpufreq_governor     *governor;
55
54
 
56
 
    unsigned int        resume; /* flag for cpufreq 1st run
 
55
    bool_t              resume; /* flag for cpufreq 1st run
57
56
                                 * S3 wakeup, hotplug cpu, etc */
 
57
    s8                  turbo;  /* tristate flag: 0 for unsupported
 
58
                                 * -1 for disable, 1 for enabled
 
59
                                 * See CPUFREQ_TURBO_* below for defines */
 
60
    bool_t              aperf_mperf; /* CPU has APERF/MPERF MSRs */
58
61
};
59
 
extern struct cpufreq_policy *cpufreq_cpu_policy[NR_CPUS];
 
62
DECLARE_PER_CPU(struct cpufreq_policy *, cpufreq_cpu_policy);
60
63
 
61
64
extern int __cpufreq_set_policy(struct cpufreq_policy *data,
62
65
                                struct cpufreq_policy *policy);
114
117
#define USR_GETAVG     2
115
118
extern int cpufreq_driver_getavg(unsigned int cpu, unsigned int flag);
116
119
 
 
120
#define CPUFREQ_TURBO_DISABLED      -1
 
121
#define CPUFREQ_TURBO_UNSUPPORTED   0
 
122
#define CPUFREQ_TURBO_ENABLED       1
 
123
 
 
124
extern void cpufreq_enable_turbo(int cpuid);
 
125
extern void cpufreq_disable_turbo(int cpuid);
 
126
extern int cpufreq_get_turbo_status(int cpuid);
 
127
 
117
128
static __inline__ int 
118
129
__cpufreq_governor(struct cpufreq_policy *policy, unsigned int event)
119
130
{
241
252
void cpufreq_dbs_timer_suspend(void);
242
253
void cpufreq_dbs_timer_resume(void);
243
254
 
244
 
void cpufreq_dbs_enable_turbo(int cpuid);
245
 
void cpufreq_dbs_disable_turbo(int cpuid);
246
 
unsigned int cpufreq_dbs_get_turbo_status(int cpuid);
247
255
#endif /* __XEN_CPUFREQ_PM_H__ */