Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Oct 2012 11:07:59 +0000 (UTC)
From:      Marius Strobl <marius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r241877 - stable/9/sys/sparc64/sparc64
Message-ID:  <201210221107.q9MB7x4t097320@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marius
Date: Mon Oct 22 11:07:59 2012
New Revision: 241877
URL: http://svn.freebsd.org/changeset/base/241877

Log:
  MFC: r241734
  
  Let SCHED_ULE give affinity to the CPU the tick interrupt triggered on
  when running tick_process(), similarly to what the x86 equivalents of
  this function do, however employing the less racy sequence also used in
  intr_event_handle().

Modified:
  stable/9/sys/sparc64/sparc64/tick.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/sparc64/sparc64/tick.c
==============================================================================
--- stable/9/sys/sparc64/sparc64/tick.c	Mon Oct 22 11:01:43 2012	(r241876)
+++ stable/9/sys/sparc64/sparc64/tick.c	Mon Oct 22 11:07:59 2012	(r241877)
@@ -245,14 +245,16 @@ tick_process(struct trapframe *tf)
 	struct trapframe *oldframe;
 	struct thread *td;
 
+	td = curthread;
+	td->td_intr_nesting_level++;
 	critical_enter();
 	if (tick_et.et_active) {
-		td = curthread;
 		oldframe = td->td_intr_frame;
 		td->td_intr_frame = tf;
 		tick_et.et_event_cb(&tick_et, tick_et.et_arg);
 		td->td_intr_frame = oldframe;
 	}
+	td->td_intr_nesting_level--;
 	critical_exit();
 }
 



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