]> 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 could change it by:
/sys/module/printk/parameters/ignore_loglevel

Signed-off-by: Zhang Yanmin <yanmin_zhang@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Documentation/kernel-parameters.txt
kernel/printk.c

index fa3d180d63cad20e5cb9aced5365315632b78b33..b76942c3415e8776adfd22c0b214c8cae14df478 100644 (file)
@@ -973,6 +973,9 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
        ignore_loglevel [KNL]
                        Ignore loglevel setting - this will print /all/
                        kernel messages to the console. Useful for debugging.
+                       We also add it as printk module parameter, so users
+                       could change it dynamically, usually by
+                       /sys/module/printk/parameters/ignore_loglevel.
 
        ihash_entries=  [KNL]
                        Set number of hash buckets for inode cache.
index 92d13358cea5a962aa6e35dc07b0fef1059acb83..e62f949ec14075fd11c0517c9f20514b8a4bc2d0 100644 (file)
@@ -533,6 +533,8 @@ 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