Re: [PATCH v2 1/6] powerpc/smp: Cache CPU has Asymmetric SMP

2023-10-20 Thread Srikar Dronamraju
* Michael Ellerman [2023-10-19 15:33:16]: > Srikar Dronamraju writes: > > Currently cpu feature flag is checked whenever powerpc_smt_flags gets > > called. This is an unnecessary overhead. CPU_FTR_ASYM_SMT is set based > > on the processor and all processors will either have this set or will > >

Re: [PATCH v2 1/6] powerpc/smp: Cache CPU has Asymmetric SMP

2023-10-18 Thread Michael Ellerman
Srikar Dronamraju writes: > Currently cpu feature flag is checked whenever powerpc_smt_flags gets > called. This is an unnecessary overhead. CPU_FTR_ASYM_SMT is set based > on the processor and all processors will either have this set or will > have it unset. The cpu_has_feature() test is impleme

[PATCH v2 1/6] powerpc/smp: Cache CPU has Asymmetric SMP

2023-10-18 Thread Srikar Dronamraju
Currently cpu feature flag is checked whenever powerpc_smt_flags gets called. This is an unnecessary overhead. CPU_FTR_ASYM_SMT is set based on the processor and all processors will either have this set or will have it unset. Hence only check for the feature flag once and cache it to be used subse