Re: [PATCH] signal cleanups continued: cleanup do_signal

Stephen Rothwell (sfr@canb.auug.org.au)
Fri, 17 May 2002 17:07:16 +1000


On Fri, 17 May 2002 16:57:12 +1000 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>
> Hi Linus,
>
> 11 out of our 17 architectures have basically the same code
> in arch/../kernel/signal.c:do_signal. This patch creates a
> common function for that bit of code and uses it in the places
> it can be.

Forgot to mention, that this code segment was originally extracted
by Paul Mackerras and original i386 patch was done by Anton Blanchard.

diffstat for those who are interested:

arch/cris/kernel/signal.c | 100 ++------------------------------------
arch/i386/kernel/signal.c | 106 +++-------------------------------------
arch/mips/kernel/signal.c | 101 +++-----------------------------------
arch/mips64/kernel/signal.c | 102 +++------------------------------------
arch/mips64/kernel/signal32.c | 101 +++-----------------------------------
arch/parisc/kernel/signal.c | 107 +++--------------------------------------
arch/ppc/kernel/signal.c | 100 ++------------------------------------
arch/ppc64/kernel/signal.c | 108 ++---------------------------------------
arch/ppc64/kernel/signal32.c | 109 +++---------------------------------------
arch/s390/kernel/signal.c | 104 +++-------------------------------------
arch/s390x/kernel/signal.c | 103 ++-------------------------------------
arch/s390x/kernel/signal32.c | 101 +++-----------------------------------
arch/sh/kernel/signal.c | 101 +++-----------------------------------
arch/x86_64/kernel/signal.c | 107 +++--------------------------------------
include/asm-alpha/signal.h | 3 +
include/asm-arm/signal.h | 2
include/asm-ia64/signal.h | 2
include/asm-m68k/signal.h | 2
include/asm-sparc/signal.h | 2
include/asm-sparc64/signal.h | 3 +
include/linux/signal.h | 4 +
kernel/signal.c | 106 ++++++++++++++++++++++++++++++++++++++++
22 files changed, 232 insertions(+), 1342 deletions(-)

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/