summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2011-03-05 17:49:00 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2011-03-05 17:49:00 +0000
commit6661e01f10a0543c266ee400a8d0a14c1b62e38b (patch)
treec0a48c4d001cd777ca855e10ec1c33c0e53d67d2 /sys
parent9fed50bc4968965a903add1f2df2fe05f82afeb4 (diff)
since the bus_space_barrier function does the same membar operation for
all cases, it should not waste time doing extra if/else if/else if/else conditions. i wonder how much this is going to speed up sparc64... ok miod kettenis
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/sparc64/sparc64/machdep.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/sys/arch/sparc64/sparc64/machdep.c b/sys/arch/sparc64/sparc64/machdep.c
index 4a33a825131..1e0bfa84b9f 100644
--- a/sys/arch/sparc64/sparc64/machdep.c
+++ b/sys/arch/sparc64/sparc64/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.127 2010/12/26 15:41:00 miod Exp $ */
+/* $OpenBSD: machdep.c,v 1.128 2011/03/05 17:48:59 deraadt Exp $ */
/* $NetBSD: machdep.c,v 1.108 2001/07/24 19:30:14 eeh Exp $ */
/*-
@@ -1883,15 +1883,7 @@ sparc_bus_barrier(bus_space_tag_t t, bus_space_tag_t t0, bus_space_handle_t h,
* with loads, or stores with stores. The only ones that seem
* generic are #Sync and #MemIssue. I'll use #Sync for safety.
*/
- if (flags == (BUS_SPACE_BARRIER_READ|BUS_SPACE_BARRIER_WRITE))
- membar(Sync);
- else if (flags == BUS_SPACE_BARRIER_READ)
- membar(Sync);
- else if (flags == BUS_SPACE_BARRIER_WRITE)
- membar(Sync);
- else
- printf("sparc_bus_barrier: unknown flags\n");
- return;
+ membar(Sync);
}
int