From: Jeremy Fitzhardinge Date: Fri, 2 Jul 2010 22:26:36 +0000 (+0100) Subject: x86, ticketlock: Clean up types and accessors X-Git-Tag: v3.2-rc1~138^2^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84eb950db13ca40a0572ce9957e14723500943d6;p=pandora-kernel.git x86, ticketlock: Clean up types and accessors A few cleanups to the way spinlocks are defined and accessed: - define __ticket_t which is the size of a spinlock ticket (ie, enough bits to hold all the cpus) - Define struct arch_spinlock as a union containing plain slock and the head and tail tickets - Use head and tail to implement some of the spinlock predicates. - Make all ticket variables unsigned. - Use TICKET_SHIFT to form constants Most of this will be used in later patches. Signed-off-by: Jeremy Fitzhardinge Link: http://lkml.kernel.org/r/4E5BCC40.3030501@goop.org Signed-off-by: H. Peter Anvin --- Reading git-diff-tree failed