Lines Matching refs:perf_ctl
105 msr_t msr, perf_ctl, platform_info; in set_max_freq() local
113 perf_ctl.lo = (msr.lo & 0xff) << 8; in set_max_freq()
117 perf_ctl.lo = msr.lo & 0xff00; in set_max_freq()
120 perf_ctl.hi = 0; in set_max_freq()
121 msr_write(IA32_PERF_CTL, perf_ctl); in set_max_freq()
124 ((perf_ctl.lo >> 8) & 0xff) * CPU_BCLK); in set_max_freq()
410 msr_t msr, perf_ctl; in set_max_ratio() local
412 perf_ctl.hi = 0; in set_max_ratio()
417 perf_ctl.lo = (msr.lo & 0xff) << 8; in set_max_ratio()
421 perf_ctl.lo = (msr.lo & 0xff) << 8; in set_max_ratio()
425 perf_ctl.lo = msr.lo & 0xff00; in set_max_ratio()
427 msr_write(IA32_PERF_CTL, perf_ctl); in set_max_ratio()
430 ((perf_ctl.lo >> 8) & 0xff) * CPU_BCLK); in set_max_ratio()