staging: vc04_services: Delete vc_suspend_complete completion

Nobody is waiting on it.

Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Link: https://lore.kernel.org/r/20200131103836.14312-15-nsaenzjulienne@suse.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Nicolas Saenz Julienne 2020-01-31 11:38:30 +01:00 committed by Greg Kroah-Hartman
parent 6d044eac92
commit 26a6597506
2 changed files with 0 additions and 8 deletions

View File

@ -2356,8 +2356,6 @@ vchiq_arm_init_state(struct vchiq_state *state,
atomic_set(&arm_state->ka_use_ack_count, 0); atomic_set(&arm_state->ka_use_ack_count, 0);
atomic_set(&arm_state->ka_release_count, 0); atomic_set(&arm_state->ka_release_count, 0);
init_completion(&arm_state->vc_suspend_complete);
init_completion(&arm_state->vc_resume_complete); init_completion(&arm_state->vc_resume_complete);
/* Initialise to 'done' state. We only want to block on resume /* Initialise to 'done' state. We only want to block on resume
* completion while videocore is suspended. */ * completion while videocore is suspended. */
@ -2436,18 +2434,14 @@ set_suspend_state(struct vchiq_arm_state *arm_state,
/* state specific additional actions */ /* state specific additional actions */
switch (new_state) { switch (new_state) {
case VC_SUSPEND_FORCE_CANCELED: case VC_SUSPEND_FORCE_CANCELED:
complete_all(&arm_state->vc_suspend_complete);
break; break;
case VC_SUSPEND_REJECTED: case VC_SUSPEND_REJECTED:
complete_all(&arm_state->vc_suspend_complete);
break; break;
case VC_SUSPEND_FAILED: case VC_SUSPEND_FAILED:
complete_all(&arm_state->vc_suspend_complete);
arm_state->vc_resume_state = VC_RESUME_RESUMED; arm_state->vc_resume_state = VC_RESUME_RESUMED;
complete_all(&arm_state->vc_resume_complete); complete_all(&arm_state->vc_resume_complete);
break; break;
case VC_SUSPEND_IDLE: case VC_SUSPEND_IDLE:
reinit_completion(&arm_state->vc_suspend_complete);
break; break;
case VC_SUSPEND_REQUESTED: case VC_SUSPEND_REQUESTED:
break; break;
@ -2455,7 +2449,6 @@ set_suspend_state(struct vchiq_arm_state *arm_state,
set_resume_state(arm_state, VC_RESUME_IDLE); set_resume_state(arm_state, VC_RESUME_IDLE);
break; break;
case VC_SUSPEND_SUSPENDED: case VC_SUSPEND_SUSPENDED:
complete_all(&arm_state->vc_suspend_complete);
break; break;
default: default:
BUG(); BUG();

View File

@ -46,7 +46,6 @@ struct vchiq_arm_state {
atomic_t ka_use_ack_count; atomic_t ka_use_ack_count;
atomic_t ka_release_count; atomic_t ka_release_count;
struct completion vc_suspend_complete;
struct completion vc_resume_complete; struct completion vc_resume_complete;
rwlock_t susp_res_lock; rwlock_t susp_res_lock;