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
  • kernel
  • cpu.c
Find file BlameHistoryPermalink
  • James Morse's avatar
    cpumask: Add enabled cpumask for present CPUs that can be brought online · 4e1a7df4
    James Morse authored May 29, 2024
    
    
    The 'offline' file in sysfs shows all offline CPUs, including those
    that aren't present. User-space is expected to remove not-present CPUs
    from this list to learn which CPUs could be brought online.
    
    CPUs can be present but not-enabled. These CPUs can't be brought online
    until the firmware policy changes, which comes with an ACPI notification
    that will register the CPUs.
    
    With only the offline and present files, user-space is unable to
    determine which CPUs it can try to bring online. Add a new CPU mask
    that shows this based on all the registered CPUs.
    
    Signed-off-by: default avatarJames Morse <james.morse@arm.com>
    Tested-by: default avatarMiguel Luis <miguel.luis@oracle.com>
    Tested-by: default avatarVishnu Pajjuri <vishnu@os.amperecomputing.com>
    Tested-by: default avatarJianyong Wu <jianyong.wu@arm.com>
    Acked-by: default avatarThomas Gleixner <tglx@linutronix.de>
    Signed-off-by: default avatarRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
    Reviewed-by: default avatarGavin Shan <gshan@redhat.com>
    Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
    Link: https://lore.kernel.org/r/20240529133446.28446-20-Jonathan.Cameron@huawei.com
    
    
    Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
    4e1a7df4
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7