diff options
| author | Dave Jones <davej@redhat.com> | 2004-09-14 23:34:11 +0100 |
|---|---|---|
| committer | Dave Jones <davej@delerium.kernelslacker.org> | 2004-09-14 23:34:11 +0100 |
| commit | 1a8a3fc2317e90615dcf61f2ef34ad278cc2dc76 (patch) | |
| tree | e12f515f08382c39d59005c5c8401a232f26694c /include/linux/cpufreq.h | |
| parent | 0569d1c89b115215260e2aeec2bfdf6b074a04df (diff) | |
[CPUFREQ][1/4] cpufreq "cpu group" awareness: add policy->cpus
Save the "affected_cpu_map" used in SMT-aware drivers in struct
cpufreq_policy->(cpumask_t) cpus, and use it wherever possible. In
most cases, the ->get() function is only allowed to run on one CPU [the
one passed as argument] to keep code simpler, and as that code path
isn't executed often, and only root can do it anyway.
Signed-off-by: Dominik Brodowski <linux@brodo.de>
Signed-off-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'include/linux/cpufreq.h')
| -rw-r--r-- | include/linux/cpufreq.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index 48a23f1588a1..f8543228663f 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h @@ -22,6 +22,7 @@ #include <linux/sysfs.h> #include <linux/completion.h> #include <linux/workqueue.h> +#include <linux/cpumask.h> #define CPUFREQ_NAME_LEN 16 @@ -69,7 +70,8 @@ struct cpufreq_real_policy { }; struct cpufreq_policy { - unsigned int cpu; /* cpu nr */ + cpumask_t cpus; /* affected CPUs */ + unsigned int cpu; /* cpu nr of registered CPU */ struct cpufreq_cpuinfo cpuinfo;/* see above */ unsigned int min; /* in kHz */ |
