[Mesa-dev] [PATCH] os: add spinlocks

Marek Olšák maraeo at gmail.com
Wed Dec 15 00:23:51 PST 2010


On Tue, Dec 14, 2010 at 8:10 PM, Thomas Hellstrom <thellstrom at vmware.com>wrote:

> Hmm,
>
> for the uninformed, where do we need to use spinlocks in gallium and how do
> we avoid using them on an UP system?
>

I plan to use spinlocks to guard very simple code like the macro
remove_from_list, which might be, under some circumstances, called too
often. Entering and leaving a mutex is quite visible in callgrind.

What does UP stand for?

Marek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20101215/c27f3029/attachment.html>


More information about the mesa-dev mailing list