diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2017-02-21 14:00:16 +1100 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2017-03-01 11:23:39 +1100 |
commit | c6404adebf923fdd9ee5edf92594dcf5df3b5b10 (patch) | |
tree | b4c84b47f5c85ad25aa1e25e02fe33829c2f3c45 /target/openrisc | |
parent | 1ad9f0a464fe78d30ee60b3629f7a825cf2fab13 (diff) |
pseries: Minor cleanups to HPT management hypercalls
* Standardize on 'ptex' instead of 'pte_index' for HPTE index variables
for consistency and brevity
* Avoid variables named 'index'; shadowing index(3) from libc can lead to
surprising bugs if the variable is removed, because compiler errors
might not appear for remaining references
* Clarify index calculations in h_enter() - we have two cases, H_EXACT
where the exact HPTE slot is given, and !H_EXACT where we search for
an empty slot within the hash bucket. Make the calculation more
consistent between the cases.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com>
Diffstat (limited to 'target/openrisc')
0 files changed, 0 insertions, 0 deletions