Re: [PATCH v4 09/12] x86/mtrr: construct a memory map with cache modes

From: Borislav Petkov
Date: Sat Apr 01 2023 - 10:26:34 EST


On Fri, Mar 31, 2023 at 03:35:07PM +0200, Juergen Gross wrote:
> Hmm, this makes it much harder to see that the code really does nothing
> if enabled isn't set.

Both callsites in mtrr_bp_init() are behind such a check already.

Thx.

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette