Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jan 2013 22:09:11 +0000 (UTC)
From:      Olivier Houchard <cognet@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r245477 - head/sys/arm/arm
Message-ID:  <201301152209.r0FM9B7s059998@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cognet
Date: Tue Jan 15 22:09:11 2013
New Revision: 245477
URL: http://svnweb.freebsd.org/changeset/base/245477

Log:
  Only spin on the blocked_lock for SCHED_ULE+SMP, as it's done on the other
  arches.

Modified:
  head/sys/arm/arm/swtch.S

Modified: head/sys/arm/arm/swtch.S
==============================================================================
--- head/sys/arm/arm/swtch.S	Tue Jan 15 22:08:17 2013	(r245476)
+++ head/sys/arm/arm/swtch.S	Tue Jan 15 22:09:11 2013	(r245477)
@@ -79,6 +79,7 @@
  */
 
 #include "assym.s"
+#include "opt_sched.h"
 
 #include <machine/asm.h>
 #include <machine/asmacros.h>
@@ -428,6 +429,7 @@ ENTRY(cpu_switch)
 
 	/* Release the old thread */
 	str	r6, [r4, #TD_LOCK]
+#if defined(SCHED_ULE) && defined(SMP)
 	ldr	r6, .Lblocked_lock
 	GET_CURTHREAD_PTR(r3)
 
@@ -435,6 +437,7 @@ ENTRY(cpu_switch)
 	ldr	r4, [r3, #TD_LOCK]
 	cmp	r4, r6
 	beq	1b
+#endif
 	
 	/* XXXSCW: Safe to re-enable FIQs here */
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301152209.r0FM9B7s059998>