There are fields in the struct ips_mcp_limits which are not used
anywhere and a label which we may get rid of.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
/* Per-SKU limits */
struct ips_mcp_limits {
- int cpu_family;
- int cpu_model; /* includes extended model... */
int mcp_power_limit; /* mW units */
int core_power_limit;
int mch_power_limit;
if (!(boot_cpu_data.x86 == 6 && boot_cpu_data.x86_model == 37)) {
dev_info(ips->dev, "Non-IPS CPU detected.\n");
- goto out;
+ return NULL;
}
rdmsrl(IA32_MISC_ENABLE, misc_en);
limits = &ips_ulv_limits;
else {
dev_info(ips->dev, "No CPUID match found.\n");
- goto out;
+ return NULL;
}
rdmsrl(TURBO_POWER_CURRENT_LIMIT, turbo_power);
limits->core_power_limit = (tdp / 8) * 1000;
}
-out:
return limits;
}