[Skiboot] [PATCH 2/2] hw/phb3: Remove struct rtt_entry
Gavin Shan
gwshan at linux.vnet.ibm.com
Fri Jul 17 09:12:32 AEST 2015
Nobody is using it except calculating the RTE table size. The
patch removes it.
Signed-off-by: Gavin Shan <gwshan at linux.vnet.ibm.com>
---
include/phb3.h | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/include/phb3.h b/include/phb3.h
index c15f5d2..3accd9e 100644
--- a/include/phb3.h
+++ b/include/phb3.h
@@ -99,10 +99,7 @@
* Entries are 2 bytes indexed by PCIe RID
*/
#define RTT_TABLE_ENTRIES 0x10000
-#define RTT_TABLE_SIZE (RTT_TABLE_ENTRIES * sizeof(struct rtt_entry))
-struct rtt_entry {
- uint16_t pe_num;
-};
+#define RTT_TABLE_SIZE 0x20000
/* IVT Table : MSI Interrupt vectors * state.
*
@@ -301,7 +298,7 @@ struct phb3 {
const __be64 *lane_eq;
unsigned int max_link_speed;
- uint16_t rte_cache[RTT_TABLE_SIZE/2];
+ uint16_t rte_cache[RTT_TABLE_ENTRIES];
uint8_t peltv_cache[PELTV_TABLE_SIZE];
uint64_t lxive_cache[8];
uint64_t ive_cache[IVT_TABLE_ENTRIES];
--
2.1.0
More information about the Skiboot
mailing list