Backport of old pmu