]> git.kernelconcepts.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>
Thu, 22 Sep 2011 08:26:30 +0000 (18:26 +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 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