From 8d56bce4c4ec2dd1b648479f39eb83921a6caa1f Mon Sep 17 00:00:00 2001 From: Yanmin Zhang Date: Wed, 5 Oct 2011 11:43:27 +1100 Subject: [PATCH] printk: add module parameter ignore_loglevel to control ignore_loglevel 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 b7da18391c38..92d13358cea5 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