From: Yanmin Zhang Date: Wed, 24 Aug 2011 23:47:33 +0000 (+1000) Subject: We are enabling some power features on medfield. To test suspend-2-RAM X-Git-Tag: next-20110912~1^2~33 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7d7c8cef5812eb7f15059fc7d75b009fffde102f;p=karo-tx-linux.git 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 Signed-off-by: Andrew Morton --- diff --git a/kernel/printk.c b/kernel/printk.c index 28a40d8171b8..19d0e47b8791 100644 --- a/kernel/printk.c +++ b/kernel/printk.c @@ -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