Calibrate backported from kernel-v3