diff mbox series

tools/power turbostat: Introduce support for EMR

Message ID 20230104142353.22871-1-rui.zhang@intel.com
State Accepted
Commit 93cac4150727dae0ee89f501dd75413b88eedec0
Headers show
Series tools/power turbostat: Introduce support for EMR | expand

Commit Message

Zhang Rui Jan. 4, 2023, 2:23 p.m. UTC
Introduce support for EMR.

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

Comments

Artem Bityutskiy Jan. 11, 2023, 4:29 p.m. UTC | #1
Reviewed-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>

On Wed, 2023-01-04 at 22:23 +0800, Zhang Rui wrote:
> Introduce support for EMR.
> 
> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
> ---
>  tools/power/x86/turbostat/turbostat.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/tools/power/x86/turbostat/turbostat.c
> b/tools/power/x86/turbostat/turbostat.c
> index aba460410dbd..5073e5cdfec5 100644
> --- a/tools/power/x86/turbostat/turbostat.c
> +++ b/tools/power/x86/turbostat/turbostat.c
> @@ -5463,6 +5463,9 @@ unsigned int intel_model_duplicates(unsigned int model)
>  
>         case INTEL_FAM6_ICELAKE_D:
>                 return INTEL_FAM6_ICELAKE_X;
> +
> +       case INTEL_FAM6_EMERALDRAPIDS_X:
> +               return INTEL_FAM6_SAPPHIRERAPIDS_X;
>         }
>         return model;
>  }
Artem Bityutskiy Jan. 20, 2023, 9:20 a.m. UTC | #2
On Wed, 2023-01-11 at 18:29 +0200, Artem Bityutskiy wrote:
> Reviewed-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>

And today, also

Tested-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
diff mbox series

Patch

diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c
index aba460410dbd..5073e5cdfec5 100644
--- a/tools/power/x86/turbostat/turbostat.c
+++ b/tools/power/x86/turbostat/turbostat.c
@@ -5463,6 +5463,9 @@  unsigned int intel_model_duplicates(unsigned int model)
 
 	case INTEL_FAM6_ICELAKE_D:
 		return INTEL_FAM6_ICELAKE_X;
+
+	case INTEL_FAM6_EMERALDRAPIDS_X:
+		return INTEL_FAM6_SAPPHIRERAPIDS_X;
 	}
 	return model;
 }