- avoid needless using of reschedule

git-svn-id: http://svn.lfbs.rwth-aachen.de/svn/scc/trunk/MetalSVM@267 315a16e6-25f9-4109-90ae-ca3045a26c18
This commit is contained in:
stefan 2010-11-24 19:00:46 +00:00
parent d741ef36c8
commit 94ae01747c

View file

@ -60,7 +60,7 @@ inline static int spinlock_lock(spinlock_t* s) {
ticket = atomic_int32_inc(&s->queue);
while(atomic_int32_read(&s->dequeue) != ticket)
reschedule();
;
s->owner = per_core(current_task)->id;
return 0;