drm/panthor: Don't add write fences to the shared BOs
[drm/drm-misc.git] / arch / riscv / mm / cache-ops.c
bloba993ad11d0eca94d1b3e196c47e29387d780a4c9
1 // SPDX-License-Identifier: GPL-2.0-only
2 /*
3 * Copyright (c) 2021 Western Digital Corporation or its affiliates.
4 */
6 #include <asm/dma-noncoherent.h>
8 struct riscv_nonstd_cache_ops noncoherent_cache_ops __ro_after_init;
10 void
11 riscv_noncoherent_register_cache_ops(const struct riscv_nonstd_cache_ops *ops)
13 if (!ops)
14 return;
15 noncoherent_cache_ops = *ops;
17 EXPORT_SYMBOL_GPL(riscv_noncoherent_register_cache_ops);