PERFORCE change 134504 for review

John Birrell jb at FreeBSD.org
Wed Jan 30 15:51:26 PST 2008


http://perforce.freebsd.org/chv.cgi?CH=134504

Change 134504 by jb at jb_freebsd1 on 2008/01/30 23:50:43

	Use the releng7 kthread api.

Affected files ...

.. //depot/projects/dtrace7/src/sys/cddl/cyclic/cyclic_test.c#2 edit

Differences ...

==== //depot/projects/dtrace7/src/sys/cddl/cyclic/cyclic_test.c#2 (text+ko) ====

@@ -233,7 +233,7 @@
 
 	printf("%s: finished\n",__func__);
 
-	kthread_exit();
+	kthread_exit(0);
 }
 
 static int
@@ -256,7 +256,7 @@
 		 * Execute the tests in a kernel thread to avoid blocking
 		 * the sysctl. Look for the results in the syslog.
 		 */
-		error = kthread_add(cyclic_run_tests, (void *)(uintptr_t) cmd,
+		error = kthread_create(cyclic_run_tests, (void *)(uintptr_t) cmd,
 		    NULL, NULL, 0, 0, "cyctest%d", cmd);
 		break;
 	default:


More information about the p4-projects mailing list