From: Julien Grall <julien.grall@citrix.com>
To: Wei Wang <wei.w.wang@intel.com>,
xen-devel@lists.xen.org, jbeulich@suse.com
Cc: andrew.cooper3@citrix.com
Subject: Re: [PATCH v3 06/11] x86/intel_pstate: the main boby of the intel_pstate driver
Date: Thu, 11 Jun 2015 10:00:45 -0400 [thread overview]
Message-ID: <5579948D.5060105@citrix.com> (raw)
In-Reply-To: <1434011265-17256-1-git-send-email-wei.w.wang@intel.com>
Hi Wei,
On 11/06/2015 04:27, Wei Wang wrote:
> diff --git a/xen/include/acpi/cpufreq/cpufreq.h b/xen/include/acpi/cpufreq/cpufreq.h
> index d10e4c7..71bb45c 100644
> --- a/xen/include/acpi/cpufreq/cpufreq.h
> +++ b/xen/include/acpi/cpufreq/cpufreq.h
> @@ -34,6 +34,12 @@ struct acpi_cpufreq_data {
>
> extern struct acpi_cpufreq_data *cpufreq_drv_data[NR_CPUS];
>
> +/*
> + * Maximum transition latency is in nanoseconds - if it's unknown,
> + * CPUFREQ_ETERNAL shall be used.
> + */
> +#define CPUFREQ_ETERNAL (-1)
> +
> struct cpufreq_cpuinfo {
> unsigned int max_freq;
> unsigned int second_max_freq; /* P1 if Turbo Mode is on */
> @@ -77,6 +83,8 @@ struct cpufreq_policy {
> };
> DECLARE_PER_CPU(struct cpufreq_policy *, cpufreq_cpu_policy);
>
> +extern int intel_pstate_init(void);
> +
As said on a previous version [1], intel_pstate_init is x86 specific.
Although xen/include/acpi contains common headers.
Please move everything x86 specific in asm-x86.
> extern int __cpufreq_set_policy(struct cpufreq_policy *data,
> struct cpufreq_policy *policy);
>
> @@ -101,6 +109,12 @@ struct cpufreq_freqs {
> * CPUFREQ GOVERNORS *
> *********************************************************************/
>
> +/* The four internal governors used in intel_pstate */
> +#define CPUFREQ_POLICY_POWERSAVE (1)
> +#define CPUFREQ_POLICY_PERFORMANCE (2)
> +#define CPUFREQ_POLICY_USERSPACE (3)
> +#define CPUFREQ_POLICY_ONDEMAND (4)
> +
From the comment, this looks like x86 specific. Maybe even intel_pstate?
> #define CPUFREQ_GOV_START 1
> #define CPUFREQ_GOV_STOP 2
> #define CPUFREQ_GOV_LIMITS 3
> diff --git a/xen/include/asm-x86/cpufeature.h b/xen/include/asm-x86/cpufeature.h
> index 7963a3a..efc9711 100644
> --- a/xen/include/asm-x86/cpufeature.h
> +++ b/xen/include/asm-x86/cpufeature.h
> @@ -69,6 +69,7 @@
> #define X86_FEATURE_XTOPOLOGY (3*32+13) /* cpu topology enum extensions */
> #define X86_FEATURE_CPUID_FAULTING (3*32+14) /* cpuid faulting */
> #define X86_FEATURE_CLFLUSH_MONITOR (3*32+15) /* clflush reqd with monitor */
> +#define X86_FEATURE_APERFMPERF (3*32+28) /* APERFMPERF */
>
> /* Intel-defined CPU features, CPUID level 0x00000001 (ecx), word 4 */
> #define X86_FEATURE_XMM3 (4*32+ 0) /* Streaming SIMD Extensions-3 */
Regards,
[1] http://lists.xen.org/archives/html/xen-devel/2015-04/msg02904.html
--
Julien Grall
next prev parent reply other threads:[~2015-06-11 14:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-11 8:27 [PATCH v3 06/11] x86/intel_pstate: the main boby of the intel_pstate driver Wei Wang
2015-06-11 14:00 ` Julien Grall [this message]
2015-06-12 1:41 ` Wang, Wei W
2015-06-12 11:29 ` Julien Grall
2015-06-15 0:30 ` Wang, Wei W
2015-06-15 9:11 ` Jan Beulich
2015-06-18 15:03 ` Jan Beulich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5579948D.5060105@citrix.com \
--to=julien.grall@citrix.com \
--cc=andrew.cooper3@citrix.com \
--cc=jbeulich@suse.com \
--cc=wei.w.wang@intel.com \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.