• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
dma_resv_prune(struct dma_resv * resv)10 void 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 }
18