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/dev/random/harvest.c | 4 ++-- sys/dev/random/randomdev_soft.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev/random') diff --git a/sys/dev/random/harvest.c b/sys/dev/random/harvest.c index d783065..aacba32 100644 --- a/sys/dev/random/harvest.c +++ b/sys/dev/random/harvest.c @@ -120,7 +120,7 @@ read_random_phony(void *buf, int count) return (count); } -/* Helper routine to enable kthread_exit() to work while the module is +/* Helper routine to enable kproc_exit() to work while the module is * being (or has been) unloaded. * This routine is in this file because it is always linked into the kernel, * and will thus never be unloaded. This is critical for unloadable modules @@ -130,6 +130,6 @@ void random_set_wakeup_exit(void *control) { wakeup(control); - kthread_exit(0); + kproc_exit(0); /* NOTREACHED */ } diff --git a/sys/dev/random/randomdev_soft.c b/sys/dev/random/randomdev_soft.c index 365f3ea..c03673a 100644 --- a/sys/dev/random/randomdev_soft.c +++ b/sys/dev/random/randomdev_soft.c @@ -181,7 +181,7 @@ random_yarrow_init(void) mtx_init(&harvest_mtx, "entropy harvest mutex", NULL, MTX_SPIN); /* Start the hash/reseed thread */ - error = kthread_create(random_kthread, NULL, + error = kproc_create(random_kthread, NULL, &random_kthread_proc, RFHIGHPID, 0, "yarrow"); if (error != 0) panic("Cannot create entropy maintenance thread."); -- cgit v1.1