cache-ops.c 419 B

1234567891011121314151617
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (c) 2021 Western Digital Corporation or its affiliates.
  4. */
  5. #include <asm/dma-noncoherent.h>
  6. struct riscv_nonstd_cache_ops noncoherent_cache_ops __ro_after_init;
  7. void
  8. riscv_noncoherent_register_cache_ops(const struct riscv_nonstd_cache_ops *ops)
  9. {
  10. if (!ops)
  11. return;
  12. noncoherent_cache_ops = *ops;
  13. }
  14. EXPORT_SYMBOL_GPL(riscv_noncoherent_register_cache_ops);