clock: Added function to set max_rate