Loading drivers/soc/qcom/llcc-slice.c +4 −4 Original line number Diff line number Diff line /* Copyright (c) 2016, The Linux Foundation. All rights reserved. /* Copyright (c) 2016-2017, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -190,7 +190,7 @@ static int llcc_update_act_ctrl(struct llcc_drv_data *drv, u32 sid, timeout = jiffies + usecs_to_jiffies(LLCC_STATUS_READ_DELAY); while (time_before(jiffies, timeout)) { regmap_read(drv->llcc_map, status_reg, &slice_status); if (slice_status & status) if (!(slice_status & status)) return 0; } Loading Loading @@ -231,7 +231,7 @@ int llcc_slice_activate(struct llcc_slice_desc *desc) act_ctrl_val |= ACT_CTRL_ACT_TRIG; rc = llcc_update_act_ctrl(drv, desc->llcc_slice_id, act_ctrl_val, ACTIVATE); DEACTIVATE); __set_bit(desc->llcc_slice_id, drv->llcc_slice_map); mutex_unlock(&drv->slice_mutex); Loading Loading @@ -273,7 +273,7 @@ int llcc_slice_deactivate(struct llcc_slice_desc *desc) act_ctrl_val |= ACT_CTRL_ACT_TRIG; rc = llcc_update_act_ctrl(drv, desc->llcc_slice_id, act_ctrl_val, DEACTIVATE); ACTIVATE); __clear_bit(desc->llcc_slice_id, drv->llcc_slice_map); mutex_unlock(&drv->slice_mutex); Loading Loading
drivers/soc/qcom/llcc-slice.c +4 −4 Original line number Diff line number Diff line /* Copyright (c) 2016, The Linux Foundation. All rights reserved. /* Copyright (c) 2016-2017, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -190,7 +190,7 @@ static int llcc_update_act_ctrl(struct llcc_drv_data *drv, u32 sid, timeout = jiffies + usecs_to_jiffies(LLCC_STATUS_READ_DELAY); while (time_before(jiffies, timeout)) { regmap_read(drv->llcc_map, status_reg, &slice_status); if (slice_status & status) if (!(slice_status & status)) return 0; } Loading Loading @@ -231,7 +231,7 @@ int llcc_slice_activate(struct llcc_slice_desc *desc) act_ctrl_val |= ACT_CTRL_ACT_TRIG; rc = llcc_update_act_ctrl(drv, desc->llcc_slice_id, act_ctrl_val, ACTIVATE); DEACTIVATE); __set_bit(desc->llcc_slice_id, drv->llcc_slice_map); mutex_unlock(&drv->slice_mutex); Loading Loading @@ -273,7 +273,7 @@ int llcc_slice_deactivate(struct llcc_slice_desc *desc) act_ctrl_val |= ACT_CTRL_ACT_TRIG; rc = llcc_update_act_ctrl(drv, desc->llcc_slice_id, act_ctrl_val, DEACTIVATE); ACTIVATE); __clear_bit(desc->llcc_slice_id, drv->llcc_slice_map); mutex_unlock(&drv->slice_mutex); Loading