Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/dist/include/drm/ttm Avoid the set_pag...



details:   https://anonhg.NetBSD.org/src/rev/7ecf4924ec45
branches:  trunk
changeset: 1028265:7ecf4924ec45
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 09:58:23 2021 +0000

description:
Avoid the set_pages_array_wc/wb paths in TTM for now

we did this before. maybe we'll eventually want to stop for
performance reasons?


Author: Maya Rashish <maya%NetBSD.org@localhost>

diffstat:

 sys/external/bsd/drm2/dist/include/drm/ttm/ttm_set_memory.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r eb52d4ca0c3d -r 7ecf4924ec45 sys/external/bsd/drm2/dist/include/drm/ttm/ttm_set_memory.h
--- a/sys/external/bsd/drm2/dist/include/drm/ttm/ttm_set_memory.h       Sun Dec 19 09:58:15 2021 +0000
+++ b/sys/external/bsd/drm2/dist/include/drm/ttm/ttm_set_memory.h       Sun Dec 19 09:58:23 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ttm_set_memory.h,v 1.2 2021/12/18 23:45:46 riastradh Exp $     */
+/*     $NetBSD: ttm_set_memory.h,v 1.3 2021/12/19 09:58:23 riastradh Exp $     */
 
 /**************************************************************************
  *
@@ -35,7 +35,7 @@
 
 #include <linux/mm.h>
 
-#ifdef CONFIG_X86
+#if defined(CONFIG_X86) && defined(__linux__)
 
 #include <asm/set_memory.h>
 



Home | Main Index | Thread Index | Old Index