msm8974: Adapt memutils optimizations from msm8960pro