Measure the time of execution of the .stop(), .start(), .save_state()and .restore_state() PM domain device callbacks and if the resultis greater than the corresponding latency value stored in thedevice's struct generic_pm_domain_data object, replace the inaccuratevalue with the measured time.

Do analogously for the PM domains' .power_off() and .power_off()callbacks.