summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2010-06-26 23:33:32 +0000
committerjsing <jsing@openbsd.org>2010-06-26 23:33:32 +0000
commitebf4a3fc426b50275e560662413265ca79f61ce8 (patch)
tree2c8195fa5365833aeafcf5837d77fd48344a4734
parentNew libevent regression tests from upstream. (diff)
downloadwireguard-openbsd-ebf4a3fc426b50275e560662413265ca79f61ce8.tar.xz
wireguard-openbsd-ebf4a3fc426b50275e560662413265ca79f61ce8.zip
Allow processes to be scheduled onto secondary CPUs.
ok kettenis@
-rw-r--r--sys/arch/hppa/dev/cpu.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/sys/arch/hppa/dev/cpu.c b/sys/arch/hppa/dev/cpu.c
index 270ec9ea2bc..51f199f900f 100644
--- a/sys/arch/hppa/dev/cpu.c
+++ b/sys/arch/hppa/dev/cpu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.c,v 1.36 2010/06/03 15:48:58 jsing Exp $ */
+/* $OpenBSD: cpu.c,v 1.37 2010/06/26 23:33:32 jsing Exp $ */
/*
* Copyright (c) 1998-2003 Michael Shalayeff
@@ -201,9 +201,7 @@ cpu_boot_secondary_processors(void)
ci->ci_randseed = random();
-#ifdef notyet
sched_init_cpu(ci);
-#endif
/* Release the specified CPU by triggering an EIR{0}. */
cpu_hatch_info = ci;
@@ -245,6 +243,7 @@ cpu_hatch(void)
struct cpu_info *ci = curcpu();
extern u_long cpu_hzticks;
u_long itmr;
+ int s;
/* Initialise IPIs. */
hppa_ipi_init(ci);
@@ -260,20 +259,14 @@ cpu_hatch(void)
/* Enable interrupts. */
mtctl(ci->ci_mask, CR_EIEM);
-#ifdef notyet
ncpus++;
-#endif
ci->ci_flags |= CPUF_RUNNING;
/* Wait for additional CPUs to spinup. */
while (!start_secondary_cpu)
;
- for (;;) ;
-
-#ifdef notyet
SCHED_LOCK(s);
cpu_switchto(NULL, sched_chooseproc());
-#endif
}
#endif