|
@@ -911,7 +911,7 @@ static int __unvote_buses(struct iris_hfi_device *device)
|
|
device->bus_vote.data_count = 0;
|
|
device->bus_vote.data_count = 0;
|
|
|
|
|
|
iris_hfi_for_each_bus(device, bus) {
|
|
iris_hfi_for_each_bus(device, bus) {
|
|
- rc = msm_cvp_set_bw(bus, 0);
|
|
|
|
|
|
+ rc = cvp_set_bw(bus, 0);
|
|
if (rc) {
|
|
if (rc) {
|
|
dprintk(CVP_ERR,
|
|
dprintk(CVP_ERR,
|
|
"%s: Failed unvoting bus\n", __func__);
|
|
"%s: Failed unvoting bus\n", __func__);
|
|
@@ -952,7 +952,7 @@ no_data_count:
|
|
|
|
|
|
iris_hfi_for_each_bus(device, bus) {
|
|
iris_hfi_for_each_bus(device, bus) {
|
|
if (bus) {
|
|
if (bus) {
|
|
- rc = msm_cvp_set_bw(bus, bus->range[1]);
|
|
|
|
|
|
+ rc = cvp_set_bw(bus, bus->range[1]);
|
|
if (rc)
|
|
if (rc)
|
|
dprintk(CVP_ERR,
|
|
dprintk(CVP_ERR,
|
|
"Failed voting bus %s to ab %u\n",
|
|
"Failed voting bus %s to ab %u\n",
|
|
@@ -964,7 +964,7 @@ err_no_mem:
|
|
return rc;
|
|
return rc;
|
|
}
|
|
}
|
|
|
|
|
|
-static int iris_hfi_vote_buses(void *dev, struct cvp_bus_vote_data *d, int n)
|
|
|
|
|
|
+static int iris_hfi_vote_buses(void *dev, struct bus_info *bus, unsigned long bw)
|
|
{
|
|
{
|
|
int rc = 0;
|
|
int rc = 0;
|
|
struct iris_hfi_device *device = dev;
|
|
struct iris_hfi_device *device = dev;
|
|
@@ -973,11 +973,10 @@ static int iris_hfi_vote_buses(void *dev, struct cvp_bus_vote_data *d, int n)
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
|
|
|
|
mutex_lock(&device->lock);
|
|
mutex_lock(&device->lock);
|
|
- rc = __vote_buses(device, d, n);
|
|
|
|
|
|
+ rc = cvp_set_bw(bus, bw);
|
|
mutex_unlock(&device->lock);
|
|
mutex_unlock(&device->lock);
|
|
|
|
|
|
return rc;
|
|
return rc;
|
|
-
|
|
|
|
}
|
|
}
|
|
|
|
|
|
static int __core_set_resource(struct iris_hfi_device *device,
|
|
static int __core_set_resource(struct iris_hfi_device *device,
|