diff options
author | Chuansheng Liu <chuansheng.liu@intel.com> | 2013-09-18 08:21:49 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2013-09-22 12:53:16 -0400 |
commit | ed08d40cdec45f3f1071fa4679127d4b76dc8986 (patch) | |
tree | 034969f07daa6f080fd43523cfff9e38f1c3c605 /drivers/ata | |
parent | 272b98c6455f00884f0350f775c5342358ebb73f (diff) |
ahci: Changing two module params with static and __read_mostly
Here module parameters ahci_em_messages and devslp_idle_timeout can
be set as static and __read_mostly.
Signed-off-by: Liu, Chuansheng <chuansheng.liu@intel.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'drivers/ata')
-rw-r--r-- | drivers/ata/libahci.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/ata/libahci.c b/drivers/ata/libahci.c index acfd0f711069..b67086fde1f1 100644 --- a/drivers/ata/libahci.c +++ b/drivers/ata/libahci.c | |||
@@ -189,14 +189,15 @@ struct ata_port_operations ahci_pmp_retry_srst_ops = { | |||
189 | }; | 189 | }; |
190 | EXPORT_SYMBOL_GPL(ahci_pmp_retry_srst_ops); | 190 | EXPORT_SYMBOL_GPL(ahci_pmp_retry_srst_ops); |
191 | 191 | ||
192 | int ahci_em_messages = 1; | 192 | static bool ahci_em_messages __read_mostly = true; |
193 | EXPORT_SYMBOL_GPL(ahci_em_messages); | 193 | EXPORT_SYMBOL_GPL(ahci_em_messages); |
194 | module_param(ahci_em_messages, int, 0444); | 194 | module_param(ahci_em_messages, bool, 0444); |
195 | /* add other LED protocol types when they become supported */ | 195 | /* add other LED protocol types when they become supported */ |
196 | MODULE_PARM_DESC(ahci_em_messages, | 196 | MODULE_PARM_DESC(ahci_em_messages, |
197 | "AHCI Enclosure Management Message control (0 = off, 1 = on)"); | 197 | "AHCI Enclosure Management Message control (0 = off, 1 = on)"); |
198 | 198 | ||
199 | int devslp_idle_timeout = 1000; /* device sleep idle timeout in ms */ | 199 | /* device sleep idle timeout in ms */ |
200 | static int devslp_idle_timeout __read_mostly = 1000; | ||
200 | module_param(devslp_idle_timeout, int, 0644); | 201 | module_param(devslp_idle_timeout, int, 0644); |
201 | MODULE_PARM_DESC(devslp_idle_timeout, "device sleep idle timeout"); | 202 | MODULE_PARM_DESC(devslp_idle_timeout, "device sleep idle timeout"); |
202 | 203 | ||