Added get_cpu_freq function