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/drm Remove local definition of wbinvd.
details: https://anonhg.NetBSD.org/src/rev/84ec0a0edf31
branches: trunk
changeset: 806710:84ec0a0edf31
user: riastradh <riastradh%NetBSD.org@localhost>
date: Fri Mar 06 12:24:36 2015 +0000
description:
Remove local definition of wbinvd.
diffstat:
sys/external/bsd/drm2/drm/drm_cache.c | 12 +++---------
1 files changed, 3 insertions(+), 9 deletions(-)
diffs (40 lines):
diff -r b53fb50b8b66 -r 84ec0a0edf31 sys/external/bsd/drm2/drm/drm_cache.c
--- a/sys/external/bsd/drm2/drm/drm_cache.c Fri Mar 06 12:06:35 2015 +0000
+++ b/sys/external/bsd/drm2/drm/drm_cache.c Fri Mar 06 12:24:36 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: drm_cache.c,v 1.5 2015/03/06 12:06:35 riastradh Exp $ */
+/* $NetBSD: drm_cache.c,v 1.6 2015/03/06 12:24:36 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_cache.c,v 1.5 2015/03/06 12:06:35 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_cache.c,v 1.6 2015/03/06 12:24:36 riastradh Exp $");
#include <sys/types.h>
#include <sys/xcall.h>
@@ -104,12 +104,6 @@
}
static void
-drm_x86_clflush_cpu(void)
-{
- asm volatile ("wbinvd");
-}
-
-static void
drm_x86_clflush(const void *vaddr)
{
asm volatile ("clflush %0" : : "m" (*(const char *)vaddr));
@@ -125,7 +119,7 @@
static void
drm_x86_clflush_xc(void *arg0 __unused, void *arg1 __unused)
{
- drm_x86_clflush_cpu();
+ wbinvd();
}
static void
Home |
Main Index |
Thread Index |
Old Index