From: Paul Mundt Date: Wed, 30 Sep 2009 05:02:42 +0000 (+0900) Subject: sh: Disable unaligned kernel access printks by default. X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=8406638ab041b3f1ab3d49d6fe1989e25f3ffcad;p=deliverable%2Flinux.git sh: Disable unaligned kernel access printks by default. Certain networking and USB workloads generate floods of these accesses, so just disable it by default (thereby restoring the old behaviour). The option remains configurable from userspace, and can still be used as a debugging aid. Signed-off-by: Paul Mundt --- diff --git a/arch/sh/kernel/traps_32.c b/arch/sh/kernel/traps_32.c index 69bb1652eccd..e0b5e4b5accd 100644 --- a/arch/sh/kernel/traps_32.c +++ b/arch/sh/kernel/traps_32.c @@ -54,8 +54,8 @@ static unsigned long se_multi; /* bitfield: 1: warn 2: fixup 4: signal -> combinations 2|4 && 1|2|4 are not valid! */ static int se_usermode = 3; -/* 0: no warning 1: print a warning message */ -static int se_kernmode_warn = 1; +/* 0: no warning 1: print a warning message, disabled by default */ +static int se_kernmode_warn; #ifdef CONFIG_PROC_FS static const char *se_usermode_action[] = {