[lkml]   [2016]   [May]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [UPDATED PATCH 01/10] x86: Add topology_max_smt_threads()
On Fri, 6 May 2016, Andi Kleen wrote:

> For SMT specific workarounds it is useful to know if SMT is active
> on any online CPU in the system. This currently requires a loop
> over all online CPUs.
> Add a global variable that is updated with the maximum number
> of smt threads on any CPU on online/offline, and use it for
> topology_max_smt_threads()
> The single call is easier to use than a loop.
> Not exported to user space because user space already can use
> the existing sibling interfaces to find this out.

Reviewed-by: Thomas Gleixner <>

 \ /
  Last update: 2016-05-07 10:21    [W:0.068 / U:0.560 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site