Re: [PATCH 04/20] x86/ticketlock: make large and small ticket versions of spin_lock the same

2010-11-12 Thread Srivatsa Vaddagiri
On Wed, Nov 03, 2010 at 10:59:45AM -0400, Jeremy Fitzhardinge wrote: Make the bulk of __ticket_spin_lock look identical for large and small number of cpus. [snip] #if (NR_CPUS 256) static __always_inline void __ticket_spin_lock(arch_spinlock_t *lock) { - register union { -

Re: [PATCH 04/20] x86/ticketlock: make large and small ticket versions of spin_lock the same

2010-11-12 Thread Jeremy Fitzhardinge
On 11/12/2010 04:19 AM, Srivatsa Vaddagiri wrote: On Wed, Nov 03, 2010 at 10:59:45AM -0400, Jeremy Fitzhardinge wrote: Make the bulk of __ticket_spin_lock look identical for large and small number of cpus. [snip] #if (NR_CPUS 256) static __always_inline void

[PATCH 04/20] x86/ticketlock: make large and small ticket versions of spin_lock the same

2010-11-03 Thread Jeremy Fitzhardinge
From: Jeremy Fitzhardinge jeremy.fitzhardi...@citrix.com Make the bulk of __ticket_spin_lock look identical for large and small number of cpus. Signed-off-by: Jeremy Fitzhardinge jeremy.fitzhardi...@citrix.com --- arch/x86/include/asm/spinlock.h | 23 --- 1 files changed,