mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-10 07:00:48 +00:00
interconnect: imx: Add imx_icc_get_bw function to set initial avg and peak
Set the initial avg and peak to 0 in order to avoid setting them to INT_MAX by the interconnect core. Signed-off-by: Abel Vesa <abel.vesa@nxp.com> Link: https://lore.kernel.org/r/20220106170501.3513423-1-abel.vesa@nxp.com Signed-off-by: Georgi Djakov <djakov@kernel.org>
This commit is contained in:
parent
e783362eb5
commit
9d6c7ee7c4
@ -25,6 +25,14 @@ struct imx_icc_node {
|
|||||||
struct dev_pm_qos_request qos_req;
|
struct dev_pm_qos_request qos_req;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static int imx_icc_get_bw(struct icc_node *node, u32 *avg, u32 *peak)
|
||||||
|
{
|
||||||
|
*avg = 0;
|
||||||
|
*peak = 0;
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
static int imx_icc_node_set(struct icc_node *node)
|
static int imx_icc_node_set(struct icc_node *node)
|
||||||
{
|
{
|
||||||
struct device *dev = node->provider->dev;
|
struct device *dev = node->provider->dev;
|
||||||
@ -241,6 +249,7 @@ int imx_icc_register(struct platform_device *pdev,
|
|||||||
if (!provider)
|
if (!provider)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
provider->set = imx_icc_set;
|
provider->set = imx_icc_set;
|
||||||
|
provider->get_bw = imx_icc_get_bw;
|
||||||
provider->aggregate = icc_std_aggregate;
|
provider->aggregate = icc_std_aggregate;
|
||||||
provider->xlate = of_icc_xlate_onecell;
|
provider->xlate = of_icc_xlate_onecell;
|
||||||
provider->data = data;
|
provider->data = data;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user