msm: thermal: Remove proactive vdd restriction during probe

Vdd restriction probe will apply mitigation, which will be cleared
later during the KTM boot mitigation. KTM now initializes the
data structures to do this mitigation only after vdd restriction probe.

So remove this pro-active mitigation in the probe function. KTM boot
mitigation will be started immediately after the KTM probe and can take
care of this mitigation.

CRs-Fixed: 1010111
Change-Id: Ica59aeb0c94581e3c37b5b7df16c187ced45c28a
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
This commit is contained in:
Ram Chandrasekar 2016-05-03 17:21:40 -06:00 committed by Jeevan Shriram
parent a58645dc68
commit a004a8c07b

View file

@ -5378,15 +5378,6 @@ static int vdd_restriction_reg_init(struct platform_device *pdev)
for (i = 0; i < rails_cnt; i++) { for (i = 0; i < rails_cnt; i++) {
if (rails[i].freq_req == 1) { if (rails[i].freq_req == 1) {
usefreq |= BIT(i); usefreq |= BIT(i);
check_freq_table();
/*
* Restrict frequency by default until we have made
* our first temp reading
*/
if (freq_table_get)
ret = vdd_restriction_apply_freq(&rails[i], 0);
else
pr_info("Defer vdd rstr freq init.\n");
} else { } else {
rails[i].reg = devm_regulator_get(&pdev->dev, rails[i].reg = devm_regulator_get(&pdev->dev,
rails[i].name); rails[i].name);
@ -5404,11 +5395,6 @@ static int vdd_restriction_reg_init(struct platform_device *pdev)
rails[i].name); rails[i].name);
return ret; return ret;
} }
/*
* Restrict votlage by default until we have made
* our first temp reading
*/
ret = vdd_restriction_apply_voltage(&rails[i], 0);
} }
} }