Backported 3.12 optimization for on demand governor. Slightly faster, slightly less spiky frequency pattern, slightly less complexity code wise. Slightly better.