Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Jan 2008 23:51:25 GMT
From:      John Birrell <jb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 134504 for review
Message-ID:  <200801302351.m0UNpP36022652@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=134504

Change 134504 by jb@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801302351.m0UNpP36022652>