Re: [patch V2 08/28] sched/smt: Make sched_smt_present track topology

2018-11-29 Thread Peter Zijlstra
On Thu, Nov 29, 2018 at 09:50:13AM -0500, Konrad Rzeszutek Wilk wrote: > On Thu, Nov 29, 2018 at 09:42:56AM -0500, Konrad Rzeszutek Wilk wrote: > > On Sun, Nov 25, 2018 at 07:33:36PM +0100, Thomas Gleixner wrote: > > > Currently the 'sched_smt_present' static key is enabled when at CPU > > >

Re: [patch V2 08/28] sched/smt: Make sched_smt_present track topology

2018-11-29 Thread Konrad Rzeszutek Wilk
On Thu, Nov 29, 2018 at 09:42:56AM -0500, Konrad Rzeszutek Wilk wrote: > On Sun, Nov 25, 2018 at 07:33:36PM +0100, Thomas Gleixner wrote: > > Currently the 'sched_smt_present' static key is enabled when at CPU bringup > > SMT topology is observed, but it is never disabled. However there is demand

Re: [patch V2 08/28] sched/smt: Make sched_smt_present track topology

2018-11-29 Thread Konrad Rzeszutek Wilk
On Sun, Nov 25, 2018 at 07:33:36PM +0100, Thomas Gleixner wrote: > Currently the 'sched_smt_present' static key is enabled when at CPU bringup > SMT topology is observed, but it is never disabled. However there is demand > to also disable the key when the topology changes such that there is no SMT

[patch V2 08/28] sched/smt: Make sched_smt_present track topology

2018-11-25 Thread Thomas Gleixner
Currently the 'sched_smt_present' static key is enabled when at CPU bringup SMT topology is observed, but it is never disabled. However there is demand to also disable the key when the topology changes such that there is no SMT present anymore. Implement this by making the key count the number of