projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
cdbc494
)
scheduleThreadOn: use TSO_LOCKED even on the non-threaded RTS
author
Simon Marlow
<marlowsd@gmail.com>
Wed, 30 Mar 2011 10:11:47 +0000
(10:11 +0000)
committer
Simon Marlow
<marlowsd@gmail.com>
Wed, 30 Mar 2011 10:11:47 +0000
(10:11 +0000)
rts/Schedule.c
patch
|
blob
|
history
diff --git
a/rts/Schedule.c
b/rts/Schedule.c
index
7c945e0
..
382ba97
100644
(file)
--- a/
rts/Schedule.c
+++ b/
rts/Schedule.c
@@
-1874,9
+1874,9
@@
scheduleThread(Capability *cap, StgTSO *tso)
void
scheduleThreadOn(Capability *cap, StgWord cpu USED_IF_THREADS, StgTSO *tso)
{
-#if defined(THREADED_RTS)
tso->flags |= TSO_LOCKED; // we requested explicit affinity; don't
// move this thread from now on.
+#if defined(THREADED_RTS)
cpu %= RtsFlags.ParFlags.nNodes;
if (cpu == cap->no) {
appendToRunQueue(cap,tso);