From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0D9B2FA373D for ; Fri, 21 Oct 2022 18:10:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230063AbiJUSKw (ORCPT ); Fri, 21 Oct 2022 14:10:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229510AbiJUSKr (ORCPT ); Fri, 21 Oct 2022 14:10:47 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 472FD11CB77 for ; Fri, 21 Oct 2022 11:10:44 -0700 (PDT) Received: from zn.tnic (p200300ea9733e769329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ea:9733:e769:329c:23ff:fea6:a903]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id A04A91EC072E; Fri, 21 Oct 2022 20:10:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1666375842; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=ylHRyq5/4KpO5TnQHHmVNpCuI4uMbpwXOF0FuS2ZL3k=; b=JwZzVyWi9DyKBQlsbuUaPItTfuG9821j+6TbazbC2nuXR20ByNzTRIKOsNotRSUsYn6a5i J8MO3huAXv31xaLR7yRwQY7sg9cQmwVjwJro1EpzTiwLqP/yYHVNww59Dsn8hGoq1SPqgk AOhNnCiZHg9BmWbPnivRDVVEMCSBKbY= Date: Fri, 21 Oct 2022 20:10:37 +0200 From: Borislav Petkov To: Juergen Gross Cc: linux-kernel@vger.kernel.org, x86@kernel.org, Thomas Gleixner , Ingo Molnar , Dave Hansen , "H. Peter Anvin" Subject: Re: [PATCH v4 03/16] x86/mtrr: replace use_intel() with a local flag Message-ID: References: <20221004081023.32402-1-jgross@suse.com> <20221004081023.32402-4-jgross@suse.com> <7af80d1e-d658-5dee-32b3-a9976e900dc7@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <7af80d1e-d658-5dee-32b3-a9976e900dc7@suse.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 21, 2022 at 08:05:39PM +0200, Juergen Gross wrote: > Please have a look at patch 10 (I've put it after the rework of > mtrr_bp_init() exactly in order to avoid the dance you had to do). /me goes and looks. Yeah, if (mtrr_enabled()) seems more readable to me than if (mtrr_if) but ok, changing that is easy. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette