Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc/sparc convert xpmsg_lock to IPL_SCHED. the o...
details: https://anonhg.NetBSD.org/src/rev/190929ac9663
branches: trunk
changeset: 761256:190929ac9663
user: mrg <mrg%NetBSD.org@localhost>
date: Sat Jan 22 12:13:25 2011 +0000
description:
convert xpmsg_lock to IPL_SCHED. the old spl/simple_lock code ran at
splsched(), and this significantly helps with stability under load
when running with multiple active CPUs.
diffstat:
sys/arch/sparc/sparc/cpu.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 06d279da9169 -r 190929ac9663 sys/arch/sparc/sparc/cpu.c
--- a/sys/arch/sparc/sparc/cpu.c Sat Jan 22 12:06:51 2011 +0000
+++ b/sys/arch/sparc/sparc/cpu.c Sat Jan 22 12:13:25 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.c,v 1.224 2011/01/13 05:20:27 mrg Exp $ */
+/* $NetBSD: cpu.c,v 1.225 2011/01/22 12:13:25 mrg Exp $ */
/*
* Copyright (c) 1996
@@ -52,7 +52,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.224 2011/01/13 05:20:27 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.225 2011/01/22 12:13:25 mrg Exp $");
#include "opt_multiprocessor.h"
#include "opt_lockdebug.h"
@@ -521,7 +521,7 @@
cpu_init_system(void)
{
- mutex_init(&xpmsg_mutex, MUTEX_SPIN, IPL_VM);
+ mutex_init(&xpmsg_mutex, MUTEX_SPIN, IPL_SCHED);
}
/*
Home |
Main Index |
Thread Index |
Old Index