Skip to content

Commit 7882b69

Browse files
jgross1bp3tk0v
authored andcommitted
x86/mtrr: Make message for disabled MTRRs more descriptive
Instead of just saying "Disabled" when MTRRs are disabled for any reason, tell what is disabled and why. Signed-off-by: Juergen Gross <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent c11ca45 commit 7882b69

File tree

1 file changed

+3
-1
lines changed
  • arch/x86/kernel/cpu/mtrr

1 file changed

+3
-1
lines changed

arch/x86/kernel/cpu/mtrr/mtrr.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,6 +629,7 @@ int __initdata changed_by_mtrr_cleanup;
629629
*/
630630
void __init mtrr_bp_init(void)
631631
{
632+
const char *why = "(not available)";
632633
u32 phys_addr;
633634

634635
phys_addr = 32;
@@ -705,12 +706,13 @@ void __init mtrr_bp_init(void)
705706
changed_by_mtrr_cleanup = mtrr_cleanup(phys_addr);
706707
} else {
707708
mtrr_if = NULL;
709+
why = "by BIOS";
708710
}
709711
}
710712
}
711713

712714
if (!mtrr_enabled())
713-
pr_info("Disabled\n");
715+
pr_info("MTRRs disabled %s\n", why);
714716
}
715717

716718
/**

0 commit comments

Comments
 (0)