lkml.org 
[lkml]   [2010]   [Jun]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 4/4, v2] x86: enlightenment for ticket spin locks - improve yield behavior on Xen
>>> On 30.06.10 at 12:08, Jeremy Fitzhardinge <jeremy@goop.org> wrote:
> On 06/29/2010 04:35 PM, Jan Beulich wrote:
>> --- 2.6.35-rc3-virt-spinlocks.orig/arch/x86/include/asm/spinlock.h
>> +++ 2.6.35-rc3-virt-spinlocks/arch/x86/include/asm/spinlock.h
>> @@ -85,6 +85,15 @@ extern void virt_spin_unlock_stub(void);
>> # define UNLOCK_LOCK_PREFIX
>> #endif
>>
>> +static __always_inline void __ticket_spin_set_owner(arch_spinlock_t *lock,
>> + int owned)
>> +{
>> +#ifdef CONFIG_ENLIGHTEN_SPINLOCKS
>> + if (owned)
>> + lock->owner = percpu_read(cpu_number);
>>
>
> Why not smp_processor_id()? Is this different in some way?

Including the respective header here just doesn't work due to
resulting cyclic dependencies.

Jan



\
 
 \ /
  Last update: 2010-06-30 13:25    [W:0.072 / U:0.916 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site