]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
We are enabling some power features on medfield. To test suspend-2-RAM
authorYanmin Zhang <yanmin_zhang@linux.intel.com>
Wed, 24 Aug 2011 23:47:33 +0000 (09:47 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 13 Sep 2011 06:19:31 +0000 (16:19 +1000)
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>
kernel/printk.c

index 28a40d8171b8e67488efc6f383736d5f7532c5ff..19d0e47b87911c60f641e3b7c1b73c47ffd344f1 100644 (file)
@@ -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