Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f26b1519 authored by Len Brown's avatar Len Brown
Browse files

tools/power turbostat: decode MSR_IA32_MISC_ENABLE only on Intel



otherwise, turbostat bails on on AMD Opteron boxes:

turbostat: cpu26: msr offset 0x1a0 read failed: Input/output error

Reported-by: default avatarKamil Kolakowski <kkolakow@redhat.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent c91fc851
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -3943,6 +3943,9 @@ void decode_misc_enable_msr(void)
{
	unsigned long long msr;

	if (!genuine_intel)
		return;

	if (!get_msr(base_cpu, MSR_IA32_MISC_ENABLE, &msr))
		fprintf(outf, "cpu%d: MSR_IA32_MISC_ENABLE: 0x%08llx (%sTCC %sEIST %sMWAIT %sPREFETCH %sTURBO)\n",
			base_cpu, msr,