diff options
author | Pu Wen <[email protected]> | 2018-10-04 09:21:43 +0800 |
---|---|---|
committer | Borislav Petkov <[email protected]> | 2018-10-04 09:57:25 +0200 |
commit | 995d5f64b62f20f05b8e0972f07ec4d6c23333c9 (patch) | |
tree | 807fdcca9114d04a4ca5c93e315bd06f41f56415 /tools/power/cpupower/utils/helpers/misc.c | |
parent | cc9690cfc7a36873b219d569049e10f073dd22e4 (diff) |
tools/cpupower: Add Hygon Dhyana support
The tool cpupower is useful to get CPU frequency information and monitor
power stats on the Hygon Dhyana platform. So add Hygon Dhyana support to
it by checking vendor and family to share the code path of AMD family
17h.
Signed-off-by: Pu Wen <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Acked-by: Shuah Khan (Samsung OSG) <[email protected]>
CC: Prarit Bhargava <[email protected]>
CC: Shuah Khan <[email protected]>
CC: Thomas Gleixner <[email protected]>
CC: Thomas Renninger <[email protected]>
CC: [email protected]
Link: http://lkml.kernel.org/r/5ce86123a7b9dad925ac583d88d2f921040e859b.1538583282.git.puwen@hygon.cn
Diffstat (limited to 'tools/power/cpupower/utils/helpers/misc.c')
-rw-r--r-- | tools/power/cpupower/utils/helpers/misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/power/cpupower/utils/helpers/misc.c b/tools/power/cpupower/utils/helpers/misc.c index 80fdf55f414d..f406adc40bad 100644 --- a/tools/power/cpupower/utils/helpers/misc.c +++ b/tools/power/cpupower/utils/helpers/misc.c @@ -26,7 +26,7 @@ int cpufreq_has_boost_support(unsigned int cpu, int *support, int *active, * has Hardware determined variable increments instead. */ - if (cpu_info.family == 0x17) { + if (cpu_info.family == 0x17 || cpu_info.family == 0x18) { if (!read_msr(cpu, MSR_AMD_HWCR, &val)) { if (!(val & CPUPOWER_AMD_CPBDIS)) *active = 1; |