Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/rump/librump/rumpkern Don't create the percpu clock inte...



details:   https://anonhg.NetBSD.org/src/rev/52b97da68b46
branches:  trunk
changeset: 757014:52b97da68b46
user:      pooka <pooka%NetBSD.org@localhost>
date:      Tue Aug 10 21:32:38 2010 +0000

description:
Don't create the percpu clock interrupt threads as softint threads
because they aren't softint threads.  This fixes callouts in
situations where there is nothing else happening in the rump kernel
(i.e. no threads executed which would trigger the softints when
they unschedule).

diffstat:

 sys/rump/librump/rumpkern/intr.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 01647579e61c -r 52b97da68b46 sys/rump/librump/rumpkern/intr.c
--- a/sys/rump/librump/rumpkern/intr.c  Tue Aug 10 19:16:04 2010 +0000
+++ b/sys/rump/librump/rumpkern/intr.c  Tue Aug 10 21:32:38 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: intr.c,v 1.30 2010/08/10 19:16:04 pooka Exp $  */
+/*     $NetBSD: intr.c,v 1.31 2010/08/10 21:32:38 pooka Exp $  */
 
 /*
  * Copyright (c) 2008 Antti Kantee.  All Rights Reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.30 2010/08/10 19:16:04 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.31 2010/08/10 21:32:38 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/atomic.h>
@@ -227,7 +227,7 @@
                    NULL, "rsi%d/%d", ci->ci_index, i);
        }
 
-       rv = kthread_create(PRI_NONE, KTHREAD_MPSAFE | KTHREAD_INTR,
+       rv = kthread_create(PRI_NONE, KTHREAD_MPSAFE,
            ci, doclock, NULL, NULL, "rumpclk%d", ci->ci_index);
        if (rv)
                panic("clock thread creation failed: %d", rv);



Home | Main Index | Thread Index | Old Index