Prev: Extended file stat functions [ver #2]
Next: Oops while running fs_racer test on a POWER6 box against latest git
From: Jan Beulich on 30 Jun 2010 07:30 >>> On 30.06.10 at 12:08, Jeremy Fitzhardinge <jeremy(a)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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |