Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp4043574pxb; Mon, 27 Sep 2021 08:14:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwqTxJwqP9yJf+s7yTSNh2jIkxt1kHm3oL0p5ROsNEoSPtyzjsytK9aurMAeV016NcEgLf1 X-Received: by 2002:aa7:9561:0:b0:44b:45ea:806b with SMTP id x1-20020aa79561000000b0044b45ea806bmr498070pfq.57.1632755655336; Mon, 27 Sep 2021 08:14:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632755655; cv=none; d=google.com; s=arc-20160816; b=zhjUhAvvWagpVuqIPRqnO4V/h0UjfHCijXElYc6vyX5qndVGKFuiU3o+N2wKfI365T j4UDImhPVB8OycmG1y6HRsUdzj7dIdWu3FGFvmLaVSRxTCCKL8Uo1H2boI4uK2g3prEK /hYccreZVRwmaMyCi+pK/6M1iobR1LXegVZKKM5hCyqz4XAt7kKFBcok0uGKI8EoQjI+ ZHLAcZshAXMl2fAgl4OJ5EkyeTve8A35Cj4+Fa4oFEk7kQAZ0XIUVZi7EcCxx3yRBeWk hpkek5VVXlRZKr8YsATpPPhBiHy3SANwOUE1dtTgxhujbTnuXhrsWbBpHNkzM5MDgezN jHGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=myKpwZghXgu+58vvXkeGnGjuk6FojThsK0i+rTbgR0Y=; b=Z7r0jD9P+gleWQZ7l3fg+FyW9taQWrm961mu/j1dN8PBzWA5iM13gdrNYCFgfrqDtF 4qejKWsZ7y80lywCXxp+MeFjcXkeqrqAf7AuHVV0CzH1BdTUQbiby2TffUaohsDmyaRp ORVh/6YtCldrHFx0DQmKS0Tu7J3Fa+WXgGWG/OYGTJbhWchdHX0t1LaB0Dv6cB7ozTK3 bdBKHkFUPPZzcI0HUwEho4uA5tSSTE/s3ZTnDtNZ/8Mi4uaCzVA8/c5MpKkNaRmZpAUg r5sohF6kvVATAd2hS2LNjRLKUDfEi7HC3ikwBZl/7SR85qrgj4tD87ZKMX/GTEV/2gsl gRmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EVBbs3MV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x8si22451913plo.61.2021.09.27.08.13.59; Mon, 27 Sep 2021 08:14:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EVBbs3MV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235087AbhI0POd (ORCPT + 99 others); Mon, 27 Sep 2021 11:14:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:54200 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235002AbhI0POc (ORCPT ); Mon, 27 Sep 2021 11:14:32 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id ED8B7611C0; Mon, 27 Sep 2021 15:12:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632755575; bh=CKBeZqx1JroYNLrGq5H114mf1zFlMql7osjtvpITDCw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=EVBbs3MVb2rKhlVS8zKpcM376o/TKjtkXDHHd/wsTbaLfx6lDmygiZpT3x7nXiuQ3 qI6Y85rpLepdxU+wE0Grxf7YsEaSbNhENVT+K25JSCaaY+814CwQ0wyxUsc9KUuvQy hQdmzWSytaJMhwWEBAVICPEipETSfP3Xu6nDTfAdg5aRgouxOHTt3NfeACf7kbOWCR OsCr7y6iELtBigI8CNkHzbquvZiEOaAvAmL84E8ja0KTlJjM1I99On/bQ1Ypc9tMZk SaL7iKw5FGEGEAfGtwf33A3FoOYzfQslocN3+NGigGTpzuzQ60fFGB/7x3vYj7X3Wo Dc/q7pfQ+7M1Q== Received: by mail-oi1-f171.google.com with SMTP id x124so25951234oix.9; Mon, 27 Sep 2021 08:12:54 -0700 (PDT) X-Gm-Message-State: AOAM530Ilm/x5W+uOuMSC71Qm/zfE2USl6OULczEtCmN1IelD0KI7y4p JFtfsdUvSfsD+gfpaK90THwE0z+7e9CdWn+9RKs= X-Received: by 2002:aca:32c2:: with SMTP id y185mr501704oiy.47.1632755574136; Mon, 27 Sep 2021 08:12:54 -0700 (PDT) MIME-Version: 1.0 References: <20210914121036.3975026-1-ardb@kernel.org> <20210914121036.3975026-5-ardb@kernel.org> In-Reply-To: <20210914121036.3975026-5-ardb@kernel.org> From: Ard Biesheuvel Date: Mon, 27 Sep 2021 17:12:43 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH 4/8] powerpc: add CPU field to struct thread_info To: Linux Kernel Mailing List , Michael Ellerman Cc: Keith Packard , Russell King , Catalin Marinas , Will Deacon , Benjamin Herrenschmidt , Christophe Leroy , Paul Mackerras , Paul Walmsley , Palmer Dabbelt , Albert Ou , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Peter Zijlstra , Kees Cook , Andy Lutomirski , Linus Torvalds , Arnd Bergmann , Linux ARM , "open list:LINUX FOR POWERPC (32-BIT AND 64-BIT)" , linux-riscv , "open list:S390" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 14 Sept 2021 at 14:11, Ard Biesheuvel wrote: > > The CPU field will be moved back into thread_info even when > THREAD_INFO_IN_TASK is enabled, so add it back to powerpc's definition > of struct thread_info. > > Signed-off-by: Ard Biesheuvel Michael, Do you have any objections or issues with this patch or the subsequent ones cleaning up the task CPU kludge for ppc32? Christophe indicated that he was happy with it. Thanks, Ard. > --- > arch/powerpc/include/asm/thread_info.h | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/arch/powerpc/include/asm/thread_info.h b/arch/powerpc/include/asm/thread_info.h > index b4ec6c7dd72e..5725029aaa29 100644 > --- a/arch/powerpc/include/asm/thread_info.h > +++ b/arch/powerpc/include/asm/thread_info.h > @@ -47,6 +47,9 @@ > struct thread_info { > int preempt_count; /* 0 => preemptable, > <0 => BUG */ > +#ifdef CONFIG_SMP > + unsigned int cpu; > +#endif > unsigned long local_flags; /* private flags for thread */ > #ifdef CONFIG_LIVEPATCH > unsigned long *livepatch_sp; > -- > 2.30.2 >