lkml.org 
[lkml]   [2020]   [Jan]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/2] x86/cpu/amd: Enable the fixed intructions retired free counter IRPERF
> +	if (cpu_has(c, X86_FEATURE_IRPERF) &&
> + !(c->x86 == 0x17 && c->x86_model <= 0x1f))

Such checks are normally through a x86_pmu lag or possibly a X86_BUG_* flag

> + msr_set_bit(MSR_K7_HWCR, MSR_K7_HWCR_IRPERF_EN_BIT);
> }
>
> #ifdef CONFIG_X86_32
> --
> 2.24.1
>

\
 
 \ /
  Last update: 2020-01-16 05:03    [W:1.954 / U:0.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site