• Zhang Rui's avatar
    tools/power/turbostat: Add skeleton support for table driven feature enumeration · 45232ab1
    Zhang Rui authored
    Turbostat supports a series of features that may diverge among different
    CPU models.
    
    Current code uses various of CPU model checks in different places to
    handle this, which makes the code hard to maintain.
    
    Add skeleton support for table driven feature enumeration to replace the
    current error-prone CPU model checks and global variables.
    
    Note: by comparing the CPU models with intel-family.h, it is found that
    turbostat support for below four Models are missing, including
    INTEL_FAM6_ICELAKE, INTEL_FAM6_ATOM_SILVERMONT_MID,
    INTEL_FAM6_ATOM_AIRMONT_MID and INTEL_FAM6_ATOM_AIRMONT_NP. Adding
    support for these models is a different work, thus it is not covered in
    this patch set.
    Signed-off-by: default avatarZhang Rui <rui.zhang@intel.com>
    Reviewed-by: default avatarLen Brown <len.brown@intel.com>
    45232ab1
turbostat.c 178 KB