dma-mapping: allow using the global coherent pool for !ARM
authorChristoph Hellwig <hch@lst.de>
Thu, 24 Jun 2021 17:38:19 +0000 (19:38 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 18 Aug 2021 14:24:10 +0000 (16:24 +0200)
commit70d6aa0ecfed253a2b14659a6c77359af6d9b3ee
treed1fab7c1abf6f9ac044e9e852889bd0f12e0910c
parent31b089bbc15a53ca7c90c77ef51390d87f612088
dma-mapping: allow using the global coherent pool for !ARM

Switch an ifdef so that the global coherent pool is initialized for
any architecture that selects the DMA_GLOBAL_POOL symbol insted of
hardcoding ARM.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: Dillon Min <dillon.minfei@gmail.com>
kernel/dma/coherent.c