Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
  • linux
  • arch
  • x86
  • kernel
  • cpu
  • intel_cacheinfo.c
Find file BlameHistoryPermalink
  • Andreas Herrmann's avatar
    x86, cacheinfo: Base cache sharing info on CPUID 0x8000001d on AMD · 27d3a8a2
    Andreas Herrmann authored Oct 19, 2012
    The patch is based on a patch submitted by Hans Rosenfeld.
    See http://marc.info/?l=linux-kernel&m=133908777200931
    
    
    
    Note that  CPUID Fn8000_001D_EAX slightly differs to Intel's CPUID function 4.
    
    Bits 14-25 contain NumSharingCache. Actual number of cores sharing
               this cache. SW to add value of one to get result.
    
    The corresponding bits on Intel are defined as "maximum number of threads
    sharing this cache" (with a "plus 1" encoding).
    
    Thus a different method to determine which cores are sharing a cache
    level has to be used.
    
    Signed-off-by: default avatarAndreas Herrmann <andreas.herrmann3@amd.com>
    Link: http://lkml.kernel.org/r/20121019090209.GG26718@alberich
    
    
    Signed-off-by: default avatarH. Peter Anvin <hpa@linux.intel.com>
    27d3a8a2
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7