From 4588976bfaa52913ff9c22686231dd6436d9190a Mon Sep 17 00:00:00 2001 From: Yanmin Zhang Date: Thu, 25 Aug 2011 09:47:33 +1000 Subject: [PATCH] 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 --- kernel/printk.c | 1 + 1 file changed, 1 insertion(+) 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 -- 2.39.5