OSDN Git Service

driver: thermal: msm_lmh_dcvs: Match the hardware frequency to OPP
authorRam Chandrasekar <rkumbako@codeaurora.org>
Wed, 7 Sep 2016 01:25:18 +0000 (19:25 -0600)
committerRam Chandrasekar <rkumbako@codeaurora.org>
Fri, 21 Oct 2016 16:54:12 +0000 (10:54 -0600)
commitd14331f95b2cf5b4feb217079caab444d6c47600
tree4eceffaa6e65b6c1d1035044a444025367a279bb
parentb8af6bb420fdbec6e23a081fc742f2572fd3836b
driver: thermal: msm_lmh_dcvs: Match the hardware frequency to OPP

The hardware frequency that LMH DCVSh hardware has requested may not
match an actual frequency of CPU. The OSM hardware will aggregate and
match this request to a nearest frequency mentioned in the clock plan.
The current lmh dcvs driver exposes this request without matching to
a frequency value in the OPP table.

In order to reflect the final mitigated frequency, match the mitigation
frequency request from LMH DCVSh to a nearest CPU frequency floor
in OPP table.

Change-Id: Iffc380898eac33f6c30c3808eb38d7bb499f5769
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
drivers/thermal/msm_lmh_dcvs.c