aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/pseries/pseries.h
diff options
context:
space:
mode:
authorKleber Sacilotto de Souza <klebers@linux.vnet.ibm.com>2013-05-03 08:43:12 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-05-05 19:25:38 -0400
commitd82fb31abc46620b7c22758c75707069f2763646 (patch)
tree29a92372ff460db1008565aa027a7fc60f2277e9 /arch/powerpc/platforms/pseries/pseries.h
parente61133dda480062d221f09e4fc18f66763f8ecd0 (diff)
powerpc/pseries: Perform proper max_bus_speed detection
On pseries machines the detection for max_bus_speed should be done through an OpenFirmware property. This patch adds a function to perform this detection and a hook to perform dynamic adding of the function only for pseries. This is done by overwriting the weak pcibios_root_bridge_prepare function which is called by pci_create_root_bus(). From: Lucas Kannebley Tavares <lucaskt@linux.vnet.ibm.com> Signed-off-by: Kleber Sacilotto de Souza <klebers@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms/pseries/pseries.h')
-rw-r--r--arch/powerpc/platforms/pseries/pseries.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/pseries/pseries.h b/arch/powerpc/platforms/pseries/pseries.h
index 8af71e4cc17f..c2a3a258001c 100644
--- a/arch/powerpc/platforms/pseries/pseries.h
+++ b/arch/powerpc/platforms/pseries/pseries.h
@@ -63,4 +63,8 @@ extern int dlpar_detach_node(struct device_node *);
63/* Snooze Delay, pseries_idle */ 63/* Snooze Delay, pseries_idle */
64DECLARE_PER_CPU(long, smt_snooze_delay); 64DECLARE_PER_CPU(long, smt_snooze_delay);
65 65
66/* PCI root bridge prepare function override for pseries */
67struct pci_host_bridge;
68int pseries_root_bridge_prepare(struct pci_host_bridge *bridge);
69
66#endif /* _PSERIES_PSERIES_H */ 70#endif /* _PSERIES_PSERIES_H */