]> 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 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 b7cad05751dd7ba6de027a3b00cbcb8b2a13f298..3ddd846e3b417a10c8730ea09de29a030b1ad7be 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 19d0e47b87911c60f641e3b7c1b73c47ffd344f1..4b2be8ab869b51f61f19cf4729d82a49974f13f7 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