Module Name:    src
Committed By:   riastradh
Date:           Sat Dec 14 16:58:25 UTC 2019

Modified Files:
        src/sys/kern: kern_ras.c

Log Message:
Remove charade dancing around now-dead RCU patent.


To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/sys/kern/kern_ras.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/kern_ras.c
diff -u src/sys/kern/kern_ras.c:1.39 src/sys/kern/kern_ras.c:1.40
--- src/sys/kern/kern_ras.c:1.39	Sun Oct  6 15:11:17 2019
+++ src/sys/kern/kern_ras.c	Sat Dec 14 16:58:25 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: kern_ras.c,v 1.39 2019/10/06 15:11:17 uwe Exp $	*/
+/*	$NetBSD: kern_ras.c,v 1.40 2019/12/14 16:58:25 riastradh Exp $	*/
 
 /*-
  * Copyright (c) 2002, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_ras.c,v 1.39 2019/10/06 15:11:17 uwe Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_ras.c,v 1.40 2019/12/14 16:58:25 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -65,25 +65,7 @@ ras_sync(void)
 
 	/* No need to sync if exiting or single threaded. */
 	if (curproc->p_nlwps > 1 && ncpu > 1) {
-#ifdef NO_SOFTWARE_PATENTS
 		xc_barrier(0);
-#else
-		/*
-		 * Assumptions:
-		 *
-		 * o preemption is disabled by the thread in
-		 *   ras_lookup().
-		 * o proc::p_raslist is only inspected with
-		 *   preemption disabled.
-		 * o ras_lookup() plus loads reordered in advance
-		 *   will take no longer than 1/8s to complete.
-		 */
-		const int delta = hz >> 3;
-		int target = hardclock_ticks + delta;
-		do {
-			kpause("ras", false, delta, NULL);
-		} while (hardclock_ticks < target);
-#endif
 	}
 }
 

Reply via email to