From 51d643caa6efc11780104da450ee36a818170f81 Mon Sep 17 00:00:00 2001 From: julian Date: Sat, 20 Oct 2007 23:23:23 +0000 Subject: Rename the kthread_xxx (e.g. kthread_create()) calls to kproc_xxx as they actually make whole processes. Thos makes way for us to add REAL kthread_create() and friends that actually make theads. it turns out that most of these calls actually end up being moved back to the thread version when it's added. but we need to make this cosmetic change first. I'd LOVE to do this rename in 7.0 so that we can eventually MFC the new kthread_xxx() calls. --- sys/opencrypto/crypto.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/opencrypto') diff --git a/sys/opencrypto/crypto.c b/sys/opencrypto/crypto.c index 738328c..0637c86 100644 --- a/sys/opencrypto/crypto.c +++ b/sys/opencrypto/crypto.c @@ -216,7 +216,7 @@ crypto_init(void) goto bad; } - error = kthread_create((void (*)(void *)) crypto_proc, NULL, + error = kproc_create((void (*)(void *)) crypto_proc, NULL, &cryptoproc, 0, 0, "crypto"); if (error) { printf("crypto_init: cannot start crypto thread; error %d", @@ -224,7 +224,7 @@ crypto_init(void) goto bad; } - error = kthread_create((void (*)(void *)) crypto_ret_proc, NULL, + error = kproc_create((void (*)(void *)) crypto_ret_proc, NULL, &cryptoretproc, 0, 0, "crypto returns"); if (error) { printf("crypto_init: cannot start cryptoret thread; error %d", @@ -1222,7 +1222,7 @@ crypto_finis(void *chan) CRYPTO_DRIVER_LOCK(); wakeup_one(chan); CRYPTO_DRIVER_UNLOCK(); - kthread_exit(0); + kproc_exit(0); } /* -- cgit v1.1