HomeFreeBSD

powerpc: Adjust priority NOPs, and make them functions

Description

powerpc: Adjust priority NOPs, and make them functions

PowerISA 2.07 and PowerISA 3.0 both specify special NOPs for priority
adjustments, with "medium" priority being normal. We had been setting
medium-low as our normal priority. Rather than guess each time as to what
we want and the right NOP, wrap them in inline functions, and replace the
occurrances of the NOPs with the functions. Also, make DELAY() drop to very
low priority while waiting, so we don't burn CPU.

Coupled with r346143, this shaves off a modest 5-8% on buildworld times with
-j72. There may be more room for improvement with judicious use of these
NOPs.

MFC after: 2 weeks

Details

Provenance
jhibbitsAuthored on
Parents
rS346143: powerpc64: Increase the nap level on power9 idling
Branches
Unknown
Tags
Unknown