summary refs log tree commit diff stats
path: root/scripts/tracetool/backend
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 /scripts/tracetool/backend
parent715c54071a43ab978dc12b9da22a5016203ed284 (diff)
downloadfocaccia-qemu-8dfe8e7f4facef400ef1c220f29196ae5cfc526c.tar.gz
focaccia-qemu-8dfe8e7f4facef400ef1c220f29196ae5cfc526c.zip
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 'scripts/tracetool/backend')
0 files changed, 0 insertions, 0 deletions