mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 01:41:39 +00:00
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>
This commit is contained in:
parent
272b98c645
commit
ed08d40cde
1 changed files with 4 additions and 3 deletions
|
@ -189,14 +189,15 @@ struct ata_port_operations ahci_pmp_retry_srst_ops = {
|
||||||
};
|
};
|
||||||
EXPORT_SYMBOL_GPL(ahci_pmp_retry_srst_ops);
|
EXPORT_SYMBOL_GPL(ahci_pmp_retry_srst_ops);
|
||||||
|
|
||||||
int ahci_em_messages = 1;
|
static bool ahci_em_messages __read_mostly = true;
|
||||||
EXPORT_SYMBOL_GPL(ahci_em_messages);
|
EXPORT_SYMBOL_GPL(ahci_em_messages);
|
||||||
module_param(ahci_em_messages, int, 0444);
|
module_param(ahci_em_messages, bool, 0444);
|
||||||
/* add other LED protocol types when they become supported */
|
/* add other LED protocol types when they become supported */
|
||||||
MODULE_PARM_DESC(ahci_em_messages,
|
MODULE_PARM_DESC(ahci_em_messages,
|
||||||
"AHCI Enclosure Management Message control (0 = off, 1 = on)");
|
"AHCI Enclosure Management Message control (0 = off, 1 = on)");
|
||||||
|
|
||||||
int devslp_idle_timeout = 1000; /* device sleep idle timeout in ms */
|
/* device sleep idle timeout in ms */
|
||||||
|
static int devslp_idle_timeout __read_mostly = 1000;
|
||||||
module_param(devslp_idle_timeout, int, 0644);
|
module_param(devslp_idle_timeout, int, 0644);
|
||||||
MODULE_PARM_DESC(devslp_idle_timeout, "device sleep idle timeout");
|
MODULE_PARM_DESC(devslp_idle_timeout, "device sleep idle timeout");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue