aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/acpi
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-12-10 13:27:14 +0000
committerKeir Fraser <keir.fraser@citrix.com>2008-12-10 13:27:14 +0000
commit630b6713472007f100b40bf100246ca169b23a14 (patch)
tree70af1436ba366fc704e0b770fb11ae70c91145a7 /xen/include/acpi
parentac677794d61dc7a6f92b16946863043da890c828 (diff)
downloadxen-630b6713472007f100b40bf100246ca169b23a14.tar.gz
xen-630b6713472007f100b40bf100246ca169b23a14.tar.bz2
xen-630b6713472007f100b40bf100246ca169b23a14.zip
Add cpufreq governors: performance, powersave, userspace
This patch add 3 more governors beside original running ondemand cpufreq governor. performance governor is with best performance, keeping cpu always running at highest freq; powersave governor is with best power save effect, keeping cpu always running at lowest freq; userspace governor provide user setting freq ability; Signed-off-by: Liu, Jinsong <jinsong.liu@intel.com>
Diffstat (limited to 'xen/include/acpi')
-rw-r--r--xen/include/acpi/cpufreq/cpufreq.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/xen/include/acpi/cpufreq/cpufreq.h b/xen/include/acpi/cpufreq/cpufreq.h
index 25b6ce7316..9e3e9477a0 100644
--- a/xen/include/acpi/cpufreq/cpufreq.h
+++ b/xen/include/acpi/cpufreq/cpufreq.h
@@ -84,9 +84,12 @@ struct cpufreq_governor {
char name[CPUFREQ_NAME_LEN];
int (*governor)(struct cpufreq_policy *policy,
unsigned int event);
+ struct list_head governor_list;
};
extern struct cpufreq_governor cpufreq_gov_dbs;
+extern int cpufreq_register_governor(struct cpufreq_governor *governor);
+extern int cpufreq_unregister_governor(struct cpufreq_governor *governor);
#define CPUFREQ_DEFAULT_GOVERNOR &cpufreq_gov_dbs
/* pass a target to the cpufreq driver */