lkml.org 
[lkml]   [2004]   [May]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
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 14:02    [W:0.228 / U:0.116 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site