Re: [PATCH 09/11] x86, perf: Support sysfs files depending on SMT status

From: Peter Zijlstra
Date: Mon Jan 18 2016 - 13:03:25 EST


On Fri, Jan 15, 2016 at 05:12:51PM -0800, Andi Kleen wrote:
> From: Andi Kleen <ak@xxxxxxxxxxxxxxx>
>
> Add a way to show different sysfs events attributes depending on
> HyperThreading is on or off. This is difficult to determine
> early at boot, so we just do it dynamically when the sysfs
> attribute is read.
>
> v2:
> Compute HT status only once in CPU online/offline hooks.


But we still have the 'duplicate' functionality in fixup_ht_bug() as
reported last time. Please merge these two, we should not have 2
different means of detecting SMT.