Lines Matching refs:perf_ctl
104 msr_t msr, perf_ctl, platform_info; in set_max_freq() local
112 perf_ctl.lo = (msr.lo & 0xff) << 8; in set_max_freq()
116 perf_ctl.lo = msr.lo & 0xff00; in set_max_freq()
119 perf_ctl.hi = 0; in set_max_freq()
120 msr_write(IA32_PERF_CTL, perf_ctl); in set_max_freq()
123 ((perf_ctl.lo >> 8) & 0xff) * CPU_BCLK); in set_max_freq()
409 msr_t msr, perf_ctl; in set_max_ratio() local
411 perf_ctl.hi = 0; in set_max_ratio()
416 perf_ctl.lo = (msr.lo & 0xff) << 8; in set_max_ratio()
420 perf_ctl.lo = (msr.lo & 0xff) << 8; in set_max_ratio()
424 perf_ctl.lo = msr.lo & 0xff00; in set_max_ratio()
426 msr_write(IA32_PERF_CTL, perf_ctl); in set_max_ratio()
429 ((perf_ctl.lo >> 8) & 0xff) * CPU_BCLK); in set_max_ratio()