diff options
author | 2005-05-30 12:51:13 +0000 | |
---|---|---|
committer | 2005-05-30 12:51:13 +0000 | |
commit | 500faa86f45fa88f975899d577b34e46759b5f55 (patch) | |
tree | c09d6a838144de7da3435a660adb884a6757ef38 | |
parent | don't forget to send the log message, this fixes the commit command. (diff) | |
download | wireguard-openbsd-500faa86f45fa88f975899d577b34e46759b5f55.tar.xz wireguard-openbsd-500faa86f45fa88f975899d577b34e46759b5f55.zip |
Just use preempt(NULL) like every other architecture in this code path,
don't roll our own.
ok miod@ pefo@
-rw-r--r-- | sys/arch/mips64/mips64/interrupt.c | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/sys/arch/mips64/mips64/interrupt.c b/sys/arch/mips64/mips64/interrupt.c index a8a748fd2de..bbd56eccfef 100644 --- a/sys/arch/mips64/mips64/interrupt.c +++ b/sys/arch/mips64/mips64/interrupt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: interrupt.c,v 1.13 2005/05/29 03:20:40 deraadt Exp $ */ +/* $OpenBSD: interrupt.c,v 1.14 2005/05/30 12:51:13 art Exp $ */ /* * Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se / www.opsycon.com) @@ -282,21 +282,10 @@ softintr() ADDUPROF(p); } if (want_resched) { - int s; - - /* - * Since we are curproc, clock will normally just change - * our priority without moving us from one queue to another - * (since the running process is not on a queue.) - * If that happened after we put ourselves on the run queue - * but before we switched, we might not be on the queue - * indicated by our priority. + /* + * We're being preempted. */ - s = splstatclock(); - setrunqueue(p); - p->p_stats->p_ru.ru_nivcsw++; - mi_switch(); - splx(s); + preempt(NULL); while ((sig = CURSIG(p)) != 0) postsig(sig); } |