mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 03:27:03 +02:00
interconnect: qcom: Add stub icc_get_bw stub callback
Currently avg and peak bandwidth are voted as allowed max on kernel boot. Add stub icc_get_bw() callback that return default avg, peak bandwidth. Change-Id: I5c42f933d770e2c63c8bbc2d8e7afe5b9748ba1d Signed-off-by: Vivek Aknurwar <viveka@codeaurora.org>
This commit is contained in:
parent
98b202c507
commit
07cbd50500
|
|
@ -123,6 +123,15 @@ int qcom_icc_set_stub(struct icc_node *src, struct icc_node *dst)
|
|||
}
|
||||
EXPORT_SYMBOL(qcom_icc_set_stub);
|
||||
|
||||
int qcom_icc_get_bw_stub(struct icc_node *node, u32 *avg, u32 *peak)
|
||||
{
|
||||
*avg = 0;
|
||||
*peak = 0;
|
||||
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL(qcom_icc_get_bw_stub);
|
||||
|
||||
struct icc_node_data *qcom_icc_xlate_extended(struct of_phandle_args *spec, void *data)
|
||||
{
|
||||
struct icc_node_data *ndata;
|
||||
|
|
@ -259,6 +268,7 @@ int qcom_icc_rpmh_probe(struct platform_device *pdev)
|
|||
provider->xlate_extended = qcom_icc_xlate_extended;
|
||||
INIT_LIST_HEAD(&provider->nodes);
|
||||
provider->data = data;
|
||||
provider->get_bw = qcom_icc_get_bw_stub;
|
||||
|
||||
qp->dev = dev;
|
||||
qp->bcms = desc->bcms;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
/*
|
||||
* Copyright (c) 2020, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef __DRIVERS_INTERCONNECT_QCOM_ICC_RPMH_H__
|
||||
|
|
@ -154,4 +154,5 @@ void qcom_icc_pre_aggregate(struct icc_node *node);
|
|||
int qcom_icc_rpmh_probe(struct platform_device *pdev);
|
||||
int qcom_icc_rpmh_remove(struct platform_device *pdev);
|
||||
void qcom_icc_rpmh_sync_state(struct device *dev);
|
||||
int qcom_icc_get_bw_stub(struct icc_node *node, u32 *avg, u32 *peak);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user