Commit e3ac0f3
OPP: OF: Export dev_opp_pm_calc_power() for usage from EM
There are device drivers which can modify voltage values for OPPs. It
could be due to the chip binning and those drivers have specific chip
knowledge about it. This adjustment can happen after Energy Model is
registered, thus EM can have stale data about power.
Export dev_opp_pm_calc_power() which can be used by Energy Model to
calculate new power with the new voltage for OPPs.
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
Signed-off-by: Lukasz Luba <lukasz.luba@arm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>1 parent fec50db commit e3ac0f3
2 files changed
+20
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1494 | 1494 | | |
1495 | 1495 | | |
1496 | 1496 | | |
1497 | | - | |
1498 | | - | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
| 1500 | + | |
| 1501 | + | |
| 1502 | + | |
1499 | 1503 | | |
1500 | 1504 | | |
1501 | 1505 | | |
1502 | 1506 | | |
1503 | 1507 | | |
1504 | 1508 | | |
| 1509 | + | |
| 1510 | + | |
1505 | 1511 | | |
1506 | 1512 | | |
1507 | 1513 | | |
1508 | 1514 | | |
1509 | | - | |
1510 | | - | |
| 1515 | + | |
| 1516 | + | |
1511 | 1517 | | |
1512 | 1518 | | |
1513 | 1519 | | |
| |||
1544 | 1550 | | |
1545 | 1551 | | |
1546 | 1552 | | |
| 1553 | + | |
1547 | 1554 | | |
1548 | 1555 | | |
1549 | 1556 | | |
| |||
1619 | 1626 | | |
1620 | 1627 | | |
1621 | 1628 | | |
1622 | | - | |
| 1629 | + | |
1623 | 1630 | | |
1624 | 1631 | | |
1625 | 1632 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
476 | 476 | | |
477 | 477 | | |
478 | 478 | | |
| 479 | + | |
| 480 | + | |
479 | 481 | | |
480 | 482 | | |
481 | 483 | | |
| |||
539 | 541 | | |
540 | 542 | | |
541 | 543 | | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
542 | 550 | | |
543 | 551 | | |
544 | 552 | | |
| |||
0 commit comments