lkml.org 
[lkml]   [2004]   [May]   [1]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateSat, 1 May 2004 14:39:55 -0700
FromAndrew Morton <>
SubjectRe: [PATCH][2.6-mm] Allow i386 to reenable interrupts on lock contention
Zwane Mwaikambo <zwane@linuxpower.ca> wrote:
>
> +	#define spin_lock_string_flags \
>  +		"\n1:\t" \
>  +		"lock ; decb %0\n\t" \
>  +		"jns 4f\n" \
>  +		"testl $0x200, %1\n\t" \
>  +		"jz 2f\n\t" \
>  +		"sti\n\t" \
>  +		"jmp 2f\n\t" \
>  +		LOCK_SECTION_START("") \
>  +		"2:\t" \
>  +		"rep;nop\n\t" \
>  +		"cmpb $0, %0\n\t" \
>  +		"jle 2b\n\t" \
>  +		"jmp 3f\n\t" \
>  +		LOCK_SECTION_END \
>  +		"3:\t" \
>  +		"cli\n\t" \
>  +		"jmp 1b\n" \
>  +		"4:\t"

Could we move all the irq-handling stuff into the out-of-line section, to
keep the fast-path cache footprint smaller?

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:02    [from the cache]
©2003-2008