tools/power turbostat: Add Cometlake support
diff mbox series

Message ID 20191031131422.18887-1-rui.zhang@intel.com
State Accepted
Delegated to: Len Brown
Headers show
Series
  • tools/power turbostat: Add Cometlake support
Related show

Commit Message

Zhang Rui Oct. 31, 2019, 1:14 p.m. UTC
From: Chen Yu <yu.c.chen@intel.com>

From a turbostat point of view, Cometlake is like Kabylake.

Suggested-by: Rui Zhang <rui.zhang@intel.com>
Signed-off-by: Chen Yu <yu.c.chen@intel.com>
---
 tools/power/x86/turbostat/turbostat.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Len Brown Nov. 1, 2019, 5:02 p.m. UTC | #1
Applied -- thanks!

On Thu, Oct 31, 2019 at 9:14 AM Zhang Rui <rui.zhang@intel.com> wrote:
>
> From: Chen Yu <yu.c.chen@intel.com>
>
> From a turbostat point of view, Cometlake is like Kabylake.
>
> Suggested-by: Rui Zhang <rui.zhang@intel.com>
> Signed-off-by: Chen Yu <yu.c.chen@intel.com>
> ---
>  tools/power/x86/turbostat/turbostat.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c
> index 5d0fddda842c..985e195f066b 100644
> --- a/tools/power/x86/turbostat/turbostat.c
> +++ b/tools/power/x86/turbostat/turbostat.c
> @@ -4610,6 +4610,8 @@ unsigned int intel_model_duplicates(unsigned int model)
>         case INTEL_FAM6_SKYLAKE:
>         case INTEL_FAM6_KABYLAKE_L:
>         case INTEL_FAM6_KABYLAKE:
> +       case INTEL_FAM6_COMETLAKE_L:
> +       case INTEL_FAM6_COMETLAKE:
>                 return INTEL_FAM6_SKYLAKE_L;
>
>         case INTEL_FAM6_ICELAKE_L:
> --
> 2.17.1
>

Patch
diff mbox series

diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c
index 5d0fddda842c..985e195f066b 100644
--- a/tools/power/x86/turbostat/turbostat.c
+++ b/tools/power/x86/turbostat/turbostat.c
@@ -4610,6 +4610,8 @@  unsigned int intel_model_duplicates(unsigned int model)
 	case INTEL_FAM6_SKYLAKE:
 	case INTEL_FAM6_KABYLAKE_L:
 	case INTEL_FAM6_KABYLAKE:
+	case INTEL_FAM6_COMETLAKE_L:
+	case INTEL_FAM6_COMETLAKE:
 		return INTEL_FAM6_SKYLAKE_L;
 
 	case INTEL_FAM6_ICELAKE_L: