summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2007-10-27 00:42:40 +0000
committerjulian <julian@FreeBSD.org>2007-10-27 00:42:40 +0000
commit83e9ad568022acfed4265fd5bb432815773900b5 (patch)
tree583b1378e370a3367a5a238ae20a8b11a47b9524 /sys
parentacb713befafd577c0e580cec96826de8d50e3ce9 (diff)
downloadFreeBSD-src-83e9ad568022acfed4265fd5bb432815773900b5.zip
FreeBSD-src-83e9ad568022acfed4265fd5bb432815773900b5.tar.gz
Initialise the initial process pointer to NULL so that we know we don't
have an idle process yet. I'm guessing that on my system this was always 0 already. found by: Ed Schouten
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_idle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_idle.c b/sys/kern/kern_idle.c
index b68292d..62a901f 100644
--- a/sys/kern/kern_idle.c
+++ b/sys/kern/kern_idle.c
@@ -58,6 +58,7 @@ idle_setup(void *dummy)
struct thread *td;
int error;
+ p = NULL; /* start with no idle process */
#ifdef SMP
SLIST_FOREACH(pc, &cpuhead, pc_allcpu) {
#endif
@@ -70,7 +71,6 @@ idle_setup(void *dummy)
RFSTOPPED | RFHIGHPID, 0, "idled", "idle");
PCPU_SET(idlethread, td);
#endif
- p = td->td_proc;
if (error)
panic("idle_setup: kproc_create error %d\n", error);
OpenPOWER on IntegriCloud