- 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:
parent
d741ef36c8
commit
94ae01747c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue