aboutsummaryrefslogtreecommitdiff
path: root/disas/alpha.c
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2016-02-09 10:15:12 +1000
committerDavid Gibson <david@gibson.dropbear.id.au>2016-02-17 09:59:30 +1100
commit8dfe8e7f4facef400ef1c220f29196ae5cfc526c (patch)
treec9f6ffa2005dc259fab2730cf40d2e719b09118b /disas/alpha.c
parent715c54071a43ab978dc12b9da22a5016203ed284 (diff)
pseries: Add helper to calculate recommended hash page table size
At present we calculate the recommended hash page table (HPT) size for a pseries guest just once in ppc_spapr_init() before allocating the HPT. In future patches we're going to want this calculation in other places, so this splits it out into a helper function. While we're at it, change the calculation to use ctz() instead of an explicit loop. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Diffstat (limited to 'disas/alpha.c')
0 files changed, 0 insertions, 0 deletions