[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1168122953.26086.230.camel@imap.mvista.com>
Date: Sat, 06 Jan 2007 14:35:53 -0800
From: Daniel Walker <dwalker@...sta.com>
To: linux-kernel@...r.kernel.org
Cc: mm-commits@...r.kernel.org, kiran@...lex86.org, ak@...e.de,
md@...gle.com, mingo@...e.hu, pravin.shelar@...softinc.com,
shai@...lex86.org
Subject: Re: +
spin_lock_irq-enable-interrupts-while-spinning-i386-implementation.patch
added to -mm tree
On Wed, 2007-01-03 at 13:12 -0800, akpm@...l.org wrote:
> -# define __raw_spin_lock_irq(lock) __raw_spin_lock(lock)
> +
> +static inline void __raw_spin_lock_irq(raw_spinlock_t *lock)
> +{
> + asm volatile("\n1:\t"
> + LOCK_PREFIX " ; decb %0\n\t"
> + "jns 3f\n"
> + STI_STRING "\n"
> + "2:\t"
> + "rep;nop\n\t"
> + "cmpb $0,%0\n\t"
> + "jle 2b\n\t"
> + CLI_STRING "\n"
> + "jmp 1b\n"
> + "3:\n\t"
> + : "+m" (lock->slock) : : "memory");
> +}
> #endif
>
This doesn't compile when CONFIG_PARAVIRT is enabled. It changes the
CLI_STRING and STI_STRING values.
Daniel
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists