aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorJuergen Gross <[email protected]>2023-05-02 14:09:16 +0200
committerBorislav Petkov (AMD) <[email protected]>2023-05-09 14:13:30 +0200
commitf6b980646b93a8c585b4ed991b8a34e8fc6ef847 (patch)
tree05b9feaeca4b5d4b3f32dbabb88f523ca075a045 /lib/mpi/mpi-sub-ui.c
parentac9a78681b921877518763ba0e89202254349d1b (diff)
x86/mtrr: Remove physical address size calculation
The physical address width calculation in mtrr_bp_init() can easily be replaced with using the already available value x86_phys_bits from struct cpuinfo_x86. The same information source can be used in mtrr/cleanup.c, removing the need to pass that value on to mtrr_cleanup(). In print_mtrr_state() use x86_phys_bits instead of recalculating it from size_or_mask. Move setting of size_or_mask and size_and_mask into a dedicated new function in mtrr/generic.c, enabling to make those 2 variables static, as they are used in generic.c only now. Signed-off-by: Juergen Gross <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Tested-by: Michael Kelley <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Borislav Petkov (AMD) <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions