summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2012-07-09 09:07:30 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2012-07-09 09:07:30 +0000
commit62c4f876b8ed9eef10a666d78f011ba1fa49bef8 (patch)
tree05f4edcf131ae145078723ff850f5994e3094a38 /sys/arch/i386
parent576a62ad9196583936cbaa168a704dec2f8cefae (diff)
Do not re-initialize ci_randseed on the primary cpu
ok kettenis
Diffstat (limited to 'sys/arch/i386')
-rw-r--r--sys/arch/i386/i386/cpu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/i386/i386/cpu.c b/sys/arch/i386/i386/cpu.c
index c2d628e9a40..a0361342f41 100644
--- a/sys/arch/i386/i386/cpu.c
+++ b/sys/arch/i386/i386/cpu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.c,v 1.42 2010/11/27 13:03:04 kettenis Exp $ */
+/* $OpenBSD: cpu.c,v 1.43 2012/07/09 09:07:28 deraadt Exp $ */
/* $NetBSD: cpu.c,v 1.1.2.7 2000/06/26 02:04:05 sommerfeld Exp $ */
/*-
@@ -395,13 +395,13 @@ cpu_boot_secondary_processors()
ci = cpu_info[i];
if (ci == NULL)
continue;
- ci->ci_randseed = random();
if (ci->ci_idle_pcb == NULL)
continue;
if ((ci->ci_flags & CPUF_PRESENT) == 0)
continue;
if (ci->ci_flags & (CPUF_BSP|CPUF_SP|CPUF_PRIMARY))
continue;
+ ci->ci_randseed = random();
cpu_boot_secondary(ci);
}
}