Commit 49bc1452 authored by Nishka Dasgupta's avatar Nishka Dasgupta Committed by Greg Kroah-Hartman

staging: vc04_services: Remove function vchiq_arm_allow_resume()

Remove unused function vchiq_arm_allow_resume.
Issue found with Coccinelle.
Signed-off-by: default avatarNishka Dasgupta <nishkadg.linux@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 74a2f3cb
...@@ -2883,49 +2883,6 @@ vchiq_check_suspend(struct vchiq_state *state) ...@@ -2883,49 +2883,6 @@ vchiq_check_suspend(struct vchiq_state *state)
vchiq_log_trace(vchiq_susp_log_level, "%s exit", __func__); vchiq_log_trace(vchiq_susp_log_level, "%s exit", __func__);
} }
int
vchiq_arm_allow_resume(struct vchiq_state *state)
{
struct vchiq_arm_state *arm_state = vchiq_platform_get_arm_state(state);
int resume = 0;
int ret = -1;
if (!arm_state)
goto out;
vchiq_log_trace(vchiq_susp_log_level, "%s", __func__);
write_lock_bh(&arm_state->susp_res_lock);
unblock_resume(arm_state);
resume = vchiq_check_resume(state);
write_unlock_bh(&arm_state->susp_res_lock);
if (resume) {
if (wait_for_completion_interruptible(
&arm_state->vc_resume_complete) < 0) {
vchiq_log_error(vchiq_susp_log_level,
"%s interrupted", __func__);
/* failed, cannot accurately derive suspend
* state, so exit early. */
goto out;
}
}
read_lock_bh(&arm_state->susp_res_lock);
if (arm_state->vc_suspend_state == VC_SUSPEND_SUSPENDED) {
vchiq_log_info(vchiq_susp_log_level,
"%s: Videocore remains suspended", __func__);
} else {
vchiq_log_info(vchiq_susp_log_level,
"%s: Videocore resumed", __func__);
ret = 0;
}
read_unlock_bh(&arm_state->susp_res_lock);
out:
vchiq_log_trace(vchiq_susp_log_level, "%s exit %d", __func__, ret);
return ret;
}
/* This function should be called with the write lock held */ /* This function should be called with the write lock held */
int int
vchiq_check_resume(struct vchiq_state *state) vchiq_check_resume(struct vchiq_state *state)
......
...@@ -115,9 +115,6 @@ vchiq_arm_vcsuspend(struct vchiq_state *state); ...@@ -115,9 +115,6 @@ vchiq_arm_vcsuspend(struct vchiq_state *state);
extern VCHIQ_STATUS_T extern VCHIQ_STATUS_T
vchiq_arm_force_suspend(struct vchiq_state *state); vchiq_arm_force_suspend(struct vchiq_state *state);
extern int
vchiq_arm_allow_resume(struct vchiq_state *state);
extern VCHIQ_STATUS_T extern VCHIQ_STATUS_T
vchiq_arm_vcresume(struct vchiq_state *state); vchiq_arm_vcresume(struct vchiq_state *state);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment