]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
printk: add module parameter ignore_loglevel to control ignore_loglevel
authorYanmin Zhang <yanmin_zhang@linux.intel.com>
Wed, 5 Oct 2011 00:43:27 +0000 (11:43 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 12 Oct 2011 06:32:20 +0000 (17:32 +1100)
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@google.com>
kernel/printk.c

index b7da18391c388d543ac0eaa7cd9fbf6a4c367520..92d13358cea5a962aa6e35dc07b0fef1059acb83 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