lkml.org 
[lkml]   [2024]   [Apr]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v4 22/71] perf/x86/intel/uncore: Switch to new Intel CPU model defines
    Date
    New CPU #defines encode vendor and family as well as model.

    Signed-off-by: Tony Luck <tony.luck@intel.com>
    ---
    arch/x86/events/intel/uncore_nhmex.c | 3 ++-
    1 file changed, 2 insertions(+), 1 deletion(-)

    diff --git a/arch/x86/events/intel/uncore_nhmex.c b/arch/x86/events/intel/uncore_nhmex.c
    index 92da8aaa5966..466833478e81 100644
    --- a/arch/x86/events/intel/uncore_nhmex.c
    +++ b/arch/x86/events/intel/uncore_nhmex.c
    @@ -1,5 +1,6 @@
    // SPDX-License-Identifier: GPL-2.0
    /* Nehalem-EX/Westmere-EX uncore support */
    +#include <asm/cpu_device_id.h>
    #include "uncore.h"

    /* NHM-EX event control */
    @@ -1217,7 +1218,7 @@ static struct intel_uncore_type *nhmex_msr_uncores[] = {

    void nhmex_uncore_cpu_init(void)
    {
    - if (boot_cpu_data.x86_model == 46)
    + if (boot_cpu_data.x86_vfm == INTEL_NEHALEM_EX)
    uncore_nhmex = true;
    else
    nhmex_uncore_mbox.event_descs = wsmex_uncore_mbox_events;
    --
    2.44.0

    \
     
     \ /
      Last update: 2024-05-27 18:01    [W:4.060 / U:0.040 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site