Linux Audio

Check our new training course

Linux debugging, profiling, tracing and performance analysis training

Mar 24-27, 2025, special US time zones
Register
Loading...
Note: File does not exist in v4.6.
 1// SPDX-License-Identifier: MIT
 2/*
 3 * Copyright © 2020 Intel Corporation
 4 */
 5
 6#include <linux/dma-resv.h>
 7
 8#include "dma_resv_utils.h"
 9
10void dma_resv_prune(struct dma_resv *resv)
11{
12	if (dma_resv_trylock(resv)) {
13		if (dma_resv_test_signaled(resv, true))
14			dma_resv_add_excl_fence(resv, NULL);
15		dma_resv_unlock(resv);
16	}
17}