Skip to content

Commit 41ab43c

Browse files
spandruvadarafaeljw
authored andcommitted
cpufreq: intel_pstate: enable boost for Skylake Xeon
Enable HWP boost on Skylake server and workstations. Reported-by: Mel Gorman <[email protected]> Tested-by: Giovanni Gherdovich <[email protected]> Signed-off-by: Srinivas Pandruvada <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent aaaece3 commit 41ab43c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

drivers/cpufreq/intel_pstate.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1794,6 +1794,12 @@ static const struct x86_cpu_id intel_pstate_cpu_ee_disable_ids[] = {
17941794
{}
17951795
};
17961796

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+
17971803
static int intel_pstate_init_cpu(unsigned int cpunum)
17981804
{
17991805
struct cpudata *cpu;
@@ -1824,6 +1830,10 @@ static int intel_pstate_init_cpu(unsigned int cpunum)
18241830
intel_pstate_disable_ee(cpunum);
18251831

18261832
intel_pstate_hwp_enable(cpu);
1833+
1834+
id = x86_match_cpu(intel_pstate_hwp_boost_ids);
1835+
if (id)
1836+
hwp_boost = true;
18271837
}
18281838

18291839
intel_pstate_get_cpu_pstates(cpu);

0 commit comments

Comments
 (0)