Source-Changes-HG archive

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

[src/netbsd-7-0]: src/sys/arch/xen/xen Pull up following revision(s) (request...



details:   https://anonhg.NetBSD.org/src/rev/ff82e78bc8a6
branches:  netbsd-7-0
changeset: 801081:ff82e78bc8a6
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Mon Nov 16 07:35:32 2015 +0000

description:
Pull up following revision(s) (requested by bouyer in ticket #1040):
        sys/arch/xen/xen/xbdback_xenbus.c: revision 1.61
Fix typo which caused the kenrel thread to be created with a 0 priority.
This would cause the thread to be almost never scheduled when a userland
process could use all CPU.
Should fix the problem reported by Torbj?rn Granlund on port-xen@

diffstat:

 sys/arch/xen/xen/xbdback_xenbus.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 1365d19fa861 -r ff82e78bc8a6 sys/arch/xen/xen/xbdback_xenbus.c
--- a/sys/arch/xen/xen/xbdback_xenbus.c Sun Nov 08 23:29:53 2015 +0000
+++ b/sys/arch/xen/xen/xbdback_xenbus.c Mon Nov 16 07:35:32 2015 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: xbdback_xenbus.c,v 1.59.4.1 2014/09/22 11:15:57 martin Exp $      */
+/*      $NetBSD: xbdback_xenbus.c,v 1.59.4.1.2.1 2015/11/16 07:35:32 msaitoh Exp $      */
 
 /*
  * Copyright (c) 2006 Manuel Bouyer.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xbdback_xenbus.c,v 1.59.4.1 2014/09/22 11:15:57 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xbdback_xenbus.c,v 1.59.4.1.2.1 2015/11/16 07:35:32 msaitoh Exp $");
 
 #include <sys/atomic.h>
 #include <sys/buf.h>
@@ -647,7 +647,7 @@
        hypervisor_enable_event(xbdi->xbdi_evtchn);
        hypervisor_notify_via_evtchn(xbdi->xbdi_evtchn);
 
-       if (kthread_create(IPL_NONE, KTHREAD_MPSAFE, NULL,
+       if (kthread_create(PRI_NONE, KTHREAD_MPSAFE, NULL,
            xbdback_thread, xbdi, NULL, "%s", xbdi->xbdi_name) == 0)
                return 0;
 



Home | Main Index | Thread Index | Old Index