![]() | |||||||||||||
Messages in this thread |
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 | |||||||||||||