Lines Matching refs:tdp_ratio
1858 u64 tdp_ratio; in core_get_tdp_ratio() local
1869 err = rdmsrl_safe(tdp_msr, &tdp_ratio); in core_get_tdp_ratio()
1875 tdp_ratio >>= 16; in core_get_tdp_ratio()
1877 tdp_ratio &= 0xff; /* ratios are only 8 bits long */ in core_get_tdp_ratio()
1878 pr_debug("tdp_ratio %x\n", (int)tdp_ratio); in core_get_tdp_ratio()
1880 return (int)tdp_ratio; in core_get_tdp_ratio()
1891 int tdp_ratio; in core_get_max_pstate() local
1897 tdp_ratio = core_get_tdp_ratio(plat_info); in core_get_max_pstate()
1898 if (tdp_ratio <= 0) in core_get_max_pstate()
1903 return tdp_ratio; in core_get_max_pstate()
1912 if (tdp_ratio - 1 == tar_levels) { in core_get_max_pstate()