Hi Ben, > > I'm sick of seeing ppc64_runlatch_off in our profiles, so inline the > > heavily used part of it into the callers. To avoid a mess of circular > > includes I didn't add it as an inline function. > > Considering that it's just an asm instruction or two, should we make it > inline asm and have it NOPed out instead using the feature sections ?
Unfortunately we still need to prevent continual writes to it with a per thread flag because on some CPUs a write to the SPR in low priority mode will stall another SMT thread. So we could get rid of the cpu feature comparison but we would still need the thread bit check (or perhaps replace it with a per cpu variable). Anton _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev