mirror of
https://github.com/torvalds/linux
synced 2024-10-21 10:49:43 +00:00
73d513e45a
Presently the recovery mechanism is using two hfi functions to destroy and create interface queues. For the purpose of recovery we don't need to free and allocate the memory used for interface message queues, that's why we introduce new function which just reinit the queues. Also this will give to the recovery procedure one less reason to fail (if for some reason we couldn't allocate memory). Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org> Reviewed-by: Fritz Koenig <frkoenig@chromium.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
16 lines
396 B
C
16 lines
396 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (c) 2012-2016, The Linux Foundation. All rights reserved.
|
|
* Copyright (C) 2017 Linaro Ltd.
|
|
*/
|
|
#ifndef __VENUS_HFI_VENUS_H__
|
|
#define __VENUS_HFI_VENUS_H__
|
|
|
|
struct venus_core;
|
|
|
|
void venus_hfi_destroy(struct venus_core *core);
|
|
int venus_hfi_create(struct venus_core *core);
|
|
void venus_hfi_queues_reinit(struct venus_core *core);
|
|
|
|
#endif
|