diff options
author | Juergen Gross <[email protected]> | 2024-08-06 10:24:41 +0200 |
---|---|---|
committer | Juergen Gross <[email protected]> | 2024-09-10 10:07:10 +0200 |
commit | 43dc2a0f479b9cd30f6674986d7a40517e999d31 (patch) | |
tree | b1906e05e19d1ba79021bd742b456616936ab164 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | c4498ae316da5b5786ccd448fc555f3339b8e4ca (diff) |
xen: move max_pfn in xen_memory_setup() out of function scope
Instead of having max_pfn as a local variable of xen_memory_setup(),
make it a static variable in setup.c instead. This avoids having to
pass it to subfunctions, which will be needed in more cases in future.
Rename it to ini_nr_pages, as the value denotes the currently usable
number of memory pages as passed from the hypervisor at boot time.
Signed-off-by: Juergen Gross <[email protected]>
Tested-by: Marek Marczykowski-Górecki <[email protected]>
Reviewed-by: Jan Beulich <[email protected]>
Signed-off-by: Juergen Gross <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions