summaryrefslogtreecommitdiffstats
path: root/kernel/printk.c
diff options
context:
space:
mode:
authorYanmin Zhang <yanmin_zhang@linux.intel.com>2011-11-01 01:11:25 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2011-11-01 01:30:53 +0100
commit0eca6b7c78fd997e02bd9850e608102382b7822e (patch)
tree39dd9b7b952da5560f4addb3df3e1f907b345d2e /kernel/printk.c
parentkernel/sysctl.c: add cap_last_cap to /proc/sys/kernel (diff)
downloadlinux-0eca6b7c78fd997e02bd9850e608102382b7822e.tar.xz
linux-0eca6b7c78fd997e02bd9850e608102382b7822e.zip
printk: add module parameter ignore_loglevel to control ignore_loglevel
We are enabling some power features on medfield. To test suspend-2-RAM conveniently, we need turn on/off ignore_loglevel frequently without rebooting. Add a module parameter, so users can change it by: /sys/module/printk/parameters/ignore_loglevel Signed-off-by: Yanmin Zhang <yanmin.zhang@intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/printk.c')
-rw-r--r--kernel/printk.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/printk.c b/kernel/printk.c
index b7da18391c38..e62f949ec140 100644
--- a/kernel/printk.c
+++ b/kernel/printk.c
@@ -532,6 +532,9 @@ static int __init ignore_loglevel_setup(char *str)
}
early_param("ignore_loglevel", ignore_loglevel_setup);
+module_param_named(ignore_loglevel, ignore_loglevel, bool, S_IRUGO | S_IWUSR);
+MODULE_PARM_DESC(ignore_loglevel, "ignore loglevel setting, to"
+ "print all kernel messages to the console.");
/*
* Write out chars from start to end - 1 inclusive