mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
Revert "OPP: fix dev_pm_opp_find_bw_*() when bandwidth table not initialized"
This reverts commit 8532fd078d which is
commit b44b9bc7cab2967c3d6a791b1cd542c89fc07f0e upstream.
It breaks the Android kernel abi and can be brought back in the future
in an abi-safe way if it is really needed.
Bug: 161946584
Change-Id: I2ae4174ecb2214b5c1bc30b07970dd3468c1b43f
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
@@ -119,15 +119,6 @@ static bool assert_clk_index(struct opp_table *opp_table,
|
||||
return opp_table->clk_count > index;
|
||||
}
|
||||
|
||||
/*
|
||||
* Returns true if bandwidth table is large enough to contain the bandwidth index.
|
||||
*/
|
||||
static bool assert_bandwidth_index(struct opp_table *opp_table,
|
||||
unsigned int index)
|
||||
{
|
||||
return opp_table->path_count > index;
|
||||
}
|
||||
|
||||
/**
|
||||
* dev_pm_opp_get_voltage() - Gets the voltage corresponding to an opp
|
||||
* @opp: opp for which voltage has to be returned for
|
||||
@@ -856,8 +847,7 @@ struct dev_pm_opp *dev_pm_opp_find_bw_ceil(struct device *dev, unsigned int *bw,
|
||||
unsigned long temp = *bw;
|
||||
struct dev_pm_opp *opp;
|
||||
|
||||
opp = _find_key_ceil(dev, &temp, index, true, _read_bw,
|
||||
assert_bandwidth_index);
|
||||
opp = _find_key_ceil(dev, &temp, index, true, _read_bw, NULL);
|
||||
*bw = temp;
|
||||
return opp;
|
||||
}
|
||||
@@ -888,8 +878,7 @@ struct dev_pm_opp *dev_pm_opp_find_bw_floor(struct device *dev,
|
||||
unsigned long temp = *bw;
|
||||
struct dev_pm_opp *opp;
|
||||
|
||||
opp = _find_key_floor(dev, &temp, index, true, _read_bw,
|
||||
assert_bandwidth_index);
|
||||
opp = _find_key_floor(dev, &temp, index, true, _read_bw, NULL);
|
||||
*bw = temp;
|
||||
return opp;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user