From 94ae01747c70dbcd653b8d2bc4489162b4fd7363 Mon Sep 17 00:00:00 2001 From: stefan Date: Wed, 24 Nov 2010 19:00:46 +0000 Subject: [PATCH] - avoid needless using of reschedule git-svn-id: http://svn.lfbs.rwth-aachen.de/svn/scc/trunk/MetalSVM@267 315a16e6-25f9-4109-90ae-ca3045a26c18 --- include/metalsvm/spinlock.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/metalsvm/spinlock.h b/include/metalsvm/spinlock.h index fe4dc725..bbf17a3e 100644 --- a/include/metalsvm/spinlock.h +++ b/include/metalsvm/spinlock.h @@ -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;