diff options
author | Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> | 2018-06-05 17:42:42 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2018-06-08 05:10:26 -0400 |
commit | 41ab43c9c89e06ff08a4750d1b09e227ea97894f (patch) | |
tree | 6689467f9c4a399844dfed35ecafa2d93f9f9577 | |
parent | aaaece3de9d7709d79004dd5d5aa7c9b366f0675 (diff) |
cpufreq: intel_pstate: enable boost for Skylake Xeon
Enable HWP boost on Skylake server and workstations.
Reported-by: Mel Gorman <mgorman@techsingularity.net>
Tested-by: Giovanni Gherdovich <ggherdovich@suse.cz>
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r-- | drivers/cpufreq/intel_pstate.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c index 70bf63bb4e0e..352d5b2d5b58 100644 --- a/drivers/cpufreq/intel_pstate.c +++ b/drivers/cpufreq/intel_pstate.c | |||
@@ -1794,6 +1794,12 @@ static const struct x86_cpu_id intel_pstate_cpu_ee_disable_ids[] = { | |||
1794 | {} | 1794 | {} |
1795 | }; | 1795 | }; |
1796 | 1796 | ||
1797 | static const struct x86_cpu_id intel_pstate_hwp_boost_ids[] = { | ||
1798 | ICPU(INTEL_FAM6_SKYLAKE_X, core_funcs), | ||
1799 | ICPU(INTEL_FAM6_SKYLAKE_DESKTOP, core_funcs), | ||
1800 | {} | ||
1801 | }; | ||
1802 | |||
1797 | static int intel_pstate_init_cpu(unsigned int cpunum) | 1803 | static int intel_pstate_init_cpu(unsigned int cpunum) |
1798 | { | 1804 | { |
1799 | struct cpudata *cpu; | 1805 | struct cpudata *cpu; |
@@ -1824,6 +1830,10 @@ static int intel_pstate_init_cpu(unsigned int cpunum) | |||
1824 | intel_pstate_disable_ee(cpunum); | 1830 | intel_pstate_disable_ee(cpunum); |
1825 | 1831 | ||
1826 | intel_pstate_hwp_enable(cpu); | 1832 | intel_pstate_hwp_enable(cpu); |
1833 | |||
1834 | id = x86_match_cpu(intel_pstate_hwp_boost_ids); | ||
1835 | if (id) | ||
1836 | hwp_boost = true; | ||
1827 | } | 1837 | } |
1828 | 1838 | ||
1829 | intel_pstate_get_cpu_pstates(cpu); | 1839 | intel_pstate_get_cpu_pstates(cpu); |