|
Lines 69-74
struct pcie_link_state {
Link Here
|
| 69 |
}; |
69 |
}; |
| 70 |
|
70 |
|
| 71 |
static int aspm_disabled, aspm_force; |
71 |
static int aspm_disabled, aspm_force; |
|
|
72 |
static bool aspm_support_enabled = true; |
| 72 |
static DEFINE_MUTEX(aspm_lock); |
73 |
static DEFINE_MUTEX(aspm_lock); |
| 73 |
static LIST_HEAD(link_list); |
74 |
static LIST_HEAD(link_list); |
| 74 |
|
75 |
|
|
Lines 889-894
static int __init pcie_aspm_disable(char
Link Here
|
| 889 |
{ |
890 |
{ |
| 890 |
if (!strcmp(str, "off")) { |
891 |
if (!strcmp(str, "off")) { |
| 891 |
aspm_disabled = 1; |
892 |
aspm_disabled = 1; |
|
|
893 |
aspm_support_enabled = false; |
| 892 |
printk(KERN_INFO "PCIe ASPM is disabled\n"); |
894 |
printk(KERN_INFO "PCIe ASPM is disabled\n"); |
| 893 |
} else if (!strcmp(str, "force")) { |
895 |
} else if (!strcmp(str, "force")) { |
| 894 |
aspm_force = 1; |
896 |
aspm_force = 1; |
|
Lines 917-919
int pcie_aspm_enabled(void)
Link Here
|
| 917 |
} |
919 |
} |
| 918 |
EXPORT_SYMBOL(pcie_aspm_enabled); |
920 |
EXPORT_SYMBOL(pcie_aspm_enabled); |
| 919 |
|
921 |
|
|
|
922 |
bool pcie_aspm_support_enabled(void) |
| 923 |
{ |
| 924 |
return aspm_support_enabled; |
| 925 |
} |
| 926 |
EXPORT_SYMBOL(pcie_aspm_support_enabled); |