![]() | |||||||||||||
Messages in this thread |
On 10 Jan 2002, Robert Love wrote:
> I believe the code should be:
>
> if (target_cpu < smp_processor_id()) {
> spin_lock_irq(&target_rq->lock);
> spin_lock(&this_rq->lock);
> } else {
> spin_lock_irq(&this_rq->lock);
> spin_lock(&target_rq->lock);
> }
>
> Not so sure about unlocking. Ingo?
yep, correct, good catch!
the unlocking order does not matter much.
Ingo
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
| ||||||||||||
| Last update: 2005-03-22 12:18 [W:0.359 / U:0.100 seconds] ©2003-2008 Jasper Spaans | |||||||||||||