On Mon, Mar 30, 2015 at 11:09 AM, Denys Vlasenko <[email protected]> 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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to