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 88B58FA3742 for ; Thu, 27 Oct 2022 12:18:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235291AbiJ0MSN (ORCPT ); Thu, 27 Oct 2022 08:18:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234375AbiJ0MSK (ORCPT ); Thu, 27 Oct 2022 08:18:10 -0400 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0212DE071A for ; Thu, 27 Oct 2022 05:18:10 -0700 (PDT) Received: from zn.tnic (p200300ea9733e7cb329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ea:9733:e7cb: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 9B66F1EC0426; Thu, 27 Oct 2022 14:18:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1666873088; 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=WquI/8NSd14rVXUzGFlNJMA6t1lxckM7GaSPLgAhaPs=; b=CPsGQc/egPKz0SwpUVtl3T2rU39ipDsV8KcRCN4n05gL1W57J0pao4V9vBin4T4cKvNWGB hS7Ldfmop1kJ8aWPS0cuX95CzAYY7nF6pugsLax5wdbcVtCa+rTntZHV9OZTeAlqLPJ95y i56xrrrAjBYE8QYGkg+Oxn20mc/Q8+k= Date: Thu, 27 Oct 2022 14:18:03 +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 11/16] x86/mtrr: let cache_aps_delayed_init replace mtrr_aps_delayed_init Message-ID: References: <20221004081023.32402-1-jgross@suse.com> <20221004081023.32402-12-jgross@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20221004081023.32402-12-jgross@suse.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 04, 2022 at 10:10:18AM +0200, Juergen Gross wrote: > diff --git a/arch/x86/kernel/cpu/cacheinfo.c b/arch/x86/kernel/cpu/cacheinfo.c > index 49b60a427fc9..330aa412be63 100644 > --- a/arch/x86/kernel/cpu/cacheinfo.c > +++ b/arch/x86/kernel/cpu/cacheinfo.c > @@ -1137,3 +1137,10 @@ void cache_cpu_init(void) > cache_enable(); > local_irq_restore(flags); > } > + > +bool cache_aps_delayed_init; Why isn't that static and only the accessors set it or clear it? > +void set_cache_aps_delayed_init(void) > +{ > + cache_aps_delayed_init = true; > +} Otherwise, there's no point for this thing. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette