Skip to content

Commit c776dd5

Browse files
Kelsey Skunbergbjorn-helgaas
authored andcommitted
PCI: Make PCI_PM_* delay times private
These delay time definitions: #define PCI_PM_D2_DELAY 200 #define PCI_PM_D3_WAIT 10 #define PCI_PM_D3COLD_WAIT 100 #define PCI_PM_BUS_WAIT 50 are only used in drivers/pci/ and do not need to be seen by the rest of the kernel. Move them to drivers/pci/pci.h so they're private to the PCI subsystem. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Kelsey Skunberg <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]>
1 parent 70a6580 commit c776dd5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

drivers/pci/pci.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ int pci_probe_reset_function(struct pci_dev *dev);
3939
int pci_bridge_secondary_bus_reset(struct pci_dev *dev);
4040
int pci_bus_error_reset(struct pci_dev *dev);
4141

42+
#define PCI_PM_D2_DELAY 200
43+
#define PCI_PM_D3_WAIT 10
44+
#define PCI_PM_D3COLD_WAIT 100
45+
#define PCI_PM_BUS_WAIT 50
46+
4247
/**
4348
* struct pci_platform_pm_ops - Firmware PM callbacks
4449
*

include/linux/pci.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,6 @@ static inline const char *pci_power_name(pci_power_t state)
145145
return pci_power_names[1 + (__force int) state];
146146
}
147147

148-
#define PCI_PM_D2_DELAY 200
149-
#define PCI_PM_D3_WAIT 10
150-
#define PCI_PM_D3COLD_WAIT 100
151-
#define PCI_PM_BUS_WAIT 50
152-
153148
/**
154149
* typedef pci_channel_state_t
155150
*

0 commit comments

Comments
 (0)