Re: [PATCH 5/5] x86/asm/entry/64: drop exit_intr label

From: Linus Torvalds
Date: Mon Mar 30 2015 - 14:23:02 EST


On Mon, Mar 30, 2015 at 11:09 AM, Denys Vlasenko <dvlasenk@xxxxxxxxxx> wrote:
> - cmpl $0,PER_CPU_VAR(__preempt_count)
> - jnz 1f
> - bt $9,EFLAGS(%rsp) /* interrupts were off? */
> + bt $X86_EFLAGS_IF_BIT,EFLAGS(%rsp) /* interrupts were off? */

Since you're changing this anyway, just change it to use "testb" the
way you did the other place.

Yeah, yeah, it might make it less readable, but

testb $2,EFLAGS+1(%rsp) /* interrupts were off? */

should be smaller and faster than "bt", and the point of this commit
was to make code smaller and faster, no?

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