src: use CLOCK_FREQ