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

From: Juergen Gross
Date: Mon Apr 03 2023 - 03:03:46 EST


On 01.04.23 16:26, Borislav Petkov wrote:
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.

Oh, indeed they are.

I'll remove the check.


Juergen

Attachment: OpenPGP_0xB0DE9DD628BF132F.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature
Description: OpenPGP digital signature