mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
soc: rockchip: opp_select: Convert opp rate unit to MHz
Fixes: a7bddb708d ("soc: rockchip: add CONFIG_ROCKCHIP_OPP for rockchip_opp_select.c")
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Ib70b8b8d7a03471fef53fca995fc9b2414ddce91
This commit is contained in:
parent
35b5fa9412
commit
e0a50431c6
|
|
@ -872,7 +872,7 @@ static int rockchip_adjust_opp_by_irdrop(struct device *dev,
|
|||
if (!irdrop_table) {
|
||||
delta_irdrop = 0;
|
||||
} else {
|
||||
opp_rate = opp->rate / 1000;
|
||||
opp_rate = opp->rate / 1000000;
|
||||
board_irdrop = -EINVAL;
|
||||
for (i = 0; irdrop_table[i].sel != SEL_TABLE_END; i++) {
|
||||
if (opp_rate >= irdrop_table[i].min)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user