summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlexandre Courbot <gnurou@gmail.com>2016-07-13 15:29:36 +0900
committerBen Skeggs <bskeggs@redhat.com>2016-07-14 11:51:59 +1000
commit20ba864fafb61a08c2de42b65e3467a8cd9b2a69 (patch)
treee87e66b1d24157276310c80bbcf0a93594244df4 /lib
parente6d4c3b7c6cae6e9824dd42997586f5c39e5dd54 (diff)
downloadnouveau-20ba864fafb61a08c2de42b65e3467a8cd9b2a69.tar.gz
bus: remove cpu_coherent flag
This flag's only remaining function is to ignore the uncached flag for BOs on coherent architectures. However the reason for allocating an object uncache on a non-coherent architecture (namely because the cost of doing explicit flushes/ invalidations is higher than the benefit of caching the data because accesses are few and far between) should also apply on architectures for which coherency is maintained implicitly. Thus allocate coherent objects as uncached on all architectures. Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/include/nvif/os.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/include/nvif/os.h b/lib/include/nvif/os.h
index c265ab446..c13db8d0f 100644
--- a/lib/include/nvif/os.h
+++ b/lib/include/nvif/os.h
@@ -124,12 +124,6 @@ typedef dma_addr_t resource_size_t;
#define __printf(a,b)
#define __user
-#if defined(CONFIG_ARM)
-#define IS_ENABLED_CONFIG_ARM 1
-#else
-#define IS_ENABLED_CONFIG_ARM 0
-#endif
-
#if defined(CONFIG_IOMMU_API)
#define IS_ENABLED_CONFIG_IOMMU_API 1
#else