svn commit: r241877 - stable/9/sys/sparc64/sparc64
Marius Strobl
marius at FreeBSD.org
Mon Oct 22 11:08:00 UTC 2012
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();
}
More information about the svn-src-stable-9
mailing list