Loading drivers/pci/pcie/aspm.c +12 −22 Original line number Diff line number Diff line Loading @@ -1020,25 +1020,6 @@ void pcie_aspm_pm_state_change(struct pci_dev *pdev) up_read(&pci_bus_sem); } /* @pdev: the root port or switch downstream port */ void pcie_aspm_pm_state_change(struct pci_dev *pdev) { struct pcie_link_state *link = pdev->link_state; if (aspm_disabled || !link) return; /* * Devices changed PM state, we should recheck if latency * meets all functions' requirement */ down_read(&pci_bus_sem); mutex_lock(&aspm_lock); pcie_update_aspm_capable(link->root); pcie_config_aspm_path(link); mutex_unlock(&aspm_lock); up_read(&pci_bus_sem); } void pcie_aspm_powersave_config_link(struct pci_dev *pdev) { struct pcie_link_state *link = pdev->link_state; Loading Loading @@ -1185,7 +1166,17 @@ static int __pci_enable_link_state(struct pci_dev *pdev, int state, bool locked) return 0; } static int __pci_enable_link_state(struct pci_dev *pdev, int state, bool locked) /** * pci_enable_link_state - Clear and set the default device link state so that * the link may be allowed to enter the specified states. Note that if the * BIOS didn't grant ASPM control to the OS, this does nothing because we can't * touch the LNKCTL register. Also note that this does not enable states * disabled by pci_disable_link_state(). Return 0 or a negative errno. * * @pdev: PCI device * @state: Mask of ASPM link states to enable */ int pci_enable_link_state(struct pci_dev *pdev, int state) { return __pci_enable_link_state(pdev, state, false); } Loading Loading @@ -1225,7 +1216,6 @@ static int pcie_aspm_set_policy(const char *val, if (i == aspm_policy) return 0; if (!locked) down_read(&pci_bus_sem); mutex_lock(&aspm_lock); aspm_policy = i; Loading Loading
drivers/pci/pcie/aspm.c +12 −22 Original line number Diff line number Diff line Loading @@ -1020,25 +1020,6 @@ void pcie_aspm_pm_state_change(struct pci_dev *pdev) up_read(&pci_bus_sem); } /* @pdev: the root port or switch downstream port */ void pcie_aspm_pm_state_change(struct pci_dev *pdev) { struct pcie_link_state *link = pdev->link_state; if (aspm_disabled || !link) return; /* * Devices changed PM state, we should recheck if latency * meets all functions' requirement */ down_read(&pci_bus_sem); mutex_lock(&aspm_lock); pcie_update_aspm_capable(link->root); pcie_config_aspm_path(link); mutex_unlock(&aspm_lock); up_read(&pci_bus_sem); } void pcie_aspm_powersave_config_link(struct pci_dev *pdev) { struct pcie_link_state *link = pdev->link_state; Loading Loading @@ -1185,7 +1166,17 @@ static int __pci_enable_link_state(struct pci_dev *pdev, int state, bool locked) return 0; } static int __pci_enable_link_state(struct pci_dev *pdev, int state, bool locked) /** * pci_enable_link_state - Clear and set the default device link state so that * the link may be allowed to enter the specified states. Note that if the * BIOS didn't grant ASPM control to the OS, this does nothing because we can't * touch the LNKCTL register. Also note that this does not enable states * disabled by pci_disable_link_state(). Return 0 or a negative errno. * * @pdev: PCI device * @state: Mask of ASPM link states to enable */ int pci_enable_link_state(struct pci_dev *pdev, int state) { return __pci_enable_link_state(pdev, state, false); } Loading Loading @@ -1225,7 +1216,6 @@ static int pcie_aspm_set_policy(const char *val, if (i == aspm_policy) return 0; if (!locked) down_read(&pci_bus_sem); mutex_lock(&aspm_lock); aspm_policy = i; Loading