Lines Matching refs:limit
652 msr_t limit; in cpu_set_power_limits() local
689 limit.lo = 0; in cpu_set_power_limits()
690 limit.lo |= tdp & PKG_POWER_LIMIT_MASK; in cpu_set_power_limits()
691 limit.lo |= PKG_POWER_LIMIT_EN; in cpu_set_power_limits()
692 limit.lo |= (power_limit_1_val & PKG_POWER_LIMIT_TIME_MASK) << in cpu_set_power_limits()
696 limit.hi = 0; in cpu_set_power_limits()
697 limit.hi |= ((tdp * 125) / 100) & PKG_POWER_LIMIT_MASK; in cpu_set_power_limits()
698 limit.hi |= PKG_POWER_LIMIT_EN; in cpu_set_power_limits()
701 msr_write(MSR_PKG_POWER_LIMIT, limit); in cpu_set_power_limits()
704 writel(limit.lo, MCHBAR_REG(MCH_PKG_POWER_LIMIT_LO)); in cpu_set_power_limits()
705 writel(limit.hi, MCHBAR_REG(MCH_PKG_POWER_LIMIT_HI)); in cpu_set_power_limits()
715 limit.hi = 0; in cpu_set_power_limits()
716 limit.lo = msr.lo & 0xff; in cpu_set_power_limits()
717 msr_write(MSR_TURBO_ACTIVATION_RATIO, limit); in cpu_set_power_limits()