x86 signals: lift flags diddling code
authorRoland McGrath <roland@redhat.com>
Sat, 19 Apr 2008 21:26:54 +0000 (14:26 -0700)
committerIngo Molnar <mingo@elte.hu>
Sat, 26 Apr 2008 15:35:47 +0000 (17:35 +0200)
commit8b9c5ff380aa4f10658171ed2b9abc1e0861b770
tree25cc707163471e593274a16fe3623801b6f0a7a6
parentf7f17a67c589f031c567d9fdc809dee7c5868c8a
x86 signals: lift flags diddling code

This lifts the code diddling the TF and DF bits for signal handler setup
out of the several places copying the same code into the one place that
calls them all.  There is no change in what it does.

I also separated the recently-added DF bit clearing from the TF diddling.
The compiler turns them back into one instruction anyway.  The tossing
in of DF to the same line of code with no new comments was a bit more
arcane than seems wise.

Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/ia32/ia32_signal.c
arch/x86/kernel/signal_32.c
arch/x86/kernel/signal_64.c