]> err.no Git - linux-2.6/commit
[PATCH] x86_64: don't save eflags in x86-64 switch_to()
authorBenjamin LaHaise <bcrl@kvack.org>
Wed, 11 Jan 2006 21:43:15 +0000 (22:43 +0100)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 12 Jan 2006 03:04:50 +0000 (19:04 -0800)
commit60917a3832547886549962ab9ee753253cf5e44c
treebf3726a5b0e238784ef6857a505fec5c16dcbee0
parent6e3fbee5f11a8135109b08bfcbc05a29eb4eabe8
[PATCH] x86_64: don't save eflags in x86-64 switch_to()

As discussed, the flags register on x86-64 is saved and restored by the
assembly code which sets up struct pt_regs, so we do not need to save
and restore it in the inline assembler which already informs gcc that
we're clobbering the flags.  This patch has been sanity booted and works
okay here.

Signed-off-by: Benjamin LaHaise <benjamin.c.lahaise@intel.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/asm-x86_64/system.h