From: Yanmin Zhang Date: Wed, 5 Oct 2011 00:43:27 +0000 (+1100) Subject: printk: add module parameter ignore_loglevel to control ignore_loglevel X-Git-Tag: next-20111005~2^2~106 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=da7954040b4773ca25eb6b077ef122c0b1937c77;p=karo-tx-linux.git 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 Signed-off-by: Andrew Morton --- diff --git a/kernel/printk.c b/kernel/printk.c index b7da18391c38..92d13358cea5 100644 --- a/kernel/printk.c +++ b/kernel/printk.c @@ -532,6 +532,7 @@ 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); /* * Write out chars from start to end - 1 inclusive