Re: [rfc patch] i386: don't save eflags on task switch

From: Andi Kleen
Date: Sun Nov 05 2006 - 12:01:40 EST



> sti is expensive as well; iirc just as expensive on most processors as
> popf,


On K8 STI is 4 cycles.

> although I don't have hard numbers to back this up on hand. An
> _unlikely_ jcc + popf? is better than a sti, for sure, but a likely
> jcc+popf could cost more than a jcc+sti, depending on model.

99.9999% of all restore_flags just need STI.


-Andi
-
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/