Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Sep 2011 00:36:36 +0800
From:      Adrian Chadd <adrian@freebsd.org>
To:        freebsd-mips@freebsd.org
Subject:   Re: eventtimer issue on mips: temporary workaround
Message-ID:  <CAJ-Vmo=i6-3PNTPbP5xCftNU0w1OmMhZSysgaSRzDqgwLU6prQ@mail.gmail.com>
In-Reply-To: <CAJ-Vmo=qONOffCTgusWtbwuo43zKYyXDqqu5YEaL-MDQSbt-mQ@mail.gmail.com>
References:  <CAJ-Vmo=qONOffCTgusWtbwuo43zKYyXDqqu5YEaL-MDQSbt-mQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
.. so, the patch is totallyw rong.

intr_disable() needs to be moved before critical_enter() or it doesn't
achieve anything.
But the race is still there, between intr_enable() and "wait".
The only way to eliminate this race is to completely eliminate all the
code in cpu_idle().

Would someone clued in the implementation of wait please step up and help? :)


Adrian



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-Vmo=i6-3PNTPbP5xCftNU0w1OmMhZSysgaSRzDqgwLU6prQ>