Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp790088pxb; Tue, 14 Sep 2021 08:47:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxqblUXZib8V8ofl712xvhVfIUUXtKzlK/ZqSC9jt3NuCP5K53b4xSc/idFlTrnNS/Sti3M X-Received: by 2002:a2e:8583:: with SMTP id b3mr16574520lji.389.1631634445514; Tue, 14 Sep 2021 08:47:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631634445; cv=none; d=google.com; s=arc-20160816; b=O4xIaKQLj9EnAQx3J+yKaX7l8rluZDC3YWfgC65im/ectSyW9TsH43HzEUCkGlQKs0 eGaITGiwjTbll6bpIVuXjdriw8scjgAXV4U69G7hmEk5hcKhXIKDGVH97yA/sLDboMAo Fs+5FXrxIN//HL8gCiPsDQ8CiRJzcliJIBuBb7T7LKb7sFtQcaXyVRX8pRnZl3Ubqrz0 YFPTLkc6T+cPmzQy2PQbaFvvpa0GfVacswZQ36he0KZdVcOtLeRNnNdMv1iFqC9HcY+2 2ISR0m7IieqyFBETsOCV5WcWHpb0Bh5YE7ASZQaassnEk8HHvz0/5AhFSCc+ppI57VvG ggxg== 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=mvuoWRdgyktEZkP8N46MKfVzy+eYPbk3NccSIQmsP8g=; b=LAzCO4sbEHwmy/o6xYGcAKXVGymALAlMjQELLeDDKNj+Ls4nBNaCBgEa0vd8IaIpcw An0OrbqJ8UQx207++rOYm/RRrJm0ryIJuvhPv7HbHzom7TmO7PiV0l4RPB7FR0IcBQnL 8lpu44R818l6Wo3XDMMGkXXFatg0UiS+gLn2mqqCIfZMNUkE2eEKelZH18LfSCWp5Flo 2rPRLGN1b0f6IUSSrv72CVUeoPI2VxbU2P9As5JiSdpi6ObBew1SenULZ42lenVadCsO sX3KevSOuMLrqbwnanIZBcNGYfQqGvQHrqE4P19FwObSmvU6CmAFzv/HvHI5NNjWmv0/ iNdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gK0FQ0Pe; 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 c8si13411184lji.263.2021.09.14.08.46.56; Tue, 14 Sep 2021 08:47:25 -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=gK0FQ0Pe; 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 S235099AbhINPoS (ORCPT + 99 others); Tue, 14 Sep 2021 11:44:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:41300 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234946AbhINPoJ (ORCPT ); Tue, 14 Sep 2021 11:44:09 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4502861165; Tue, 14 Sep 2021 15:42:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631634172; bh=mvuoWRdgyktEZkP8N46MKfVzy+eYPbk3NccSIQmsP8g=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=gK0FQ0PeB1KGKVjpD5I41SxP9q8BFZaSC+H7vWUQc2cIT20MSm9xvhKv6pyt0mNTd 6O533Ly5bVq86kr0pBEQ/vIPu1uqN9VDhd+B4VIzfvT/ppnoIfc6IJmyL4RW0INh0K FlsnFgNG6A1fytjL7XSqHPZmIrxLvcUKqq+Sqh0H/nMor/MViwxnn06YitMP3yezWQ TN3ANOdhdt6yxekfuAyXroQuvKHGtC49QVWow6crQ/PnKtr2phSkMBAwIhuKJxJnkt ElPTmVrMq8iJhIKPaIy3OAgW8thjy28PYrwZiOODliPKmPIyHEBUoOWT6e1H5UxDRM WVqvdiswrtBhQ== Received: by mail-ot1-f41.google.com with SMTP id i8-20020a056830402800b0051afc3e373aso19077932ots.5; Tue, 14 Sep 2021 08:42:52 -0700 (PDT) X-Gm-Message-State: AOAM533N2FkzVXKwB8A96KxdL0CAW4ZE8iIt0IAZ7oyqYf8CmIYv3Xon /866c/X/ABpGVtOOSuJfCADoV16Sq1BtmgzkbJk= X-Received: by 2002:a9d:200b:: with SMTP id n11mr15190375ota.30.1631634171520; Tue, 14 Sep 2021 08:42:51 -0700 (PDT) MIME-Version: 1.0 References: <20210914121036.3975026-1-ardb@kernel.org> <20210914121036.3975026-2-ardb@kernel.org> In-Reply-To: From: Ard Biesheuvel Date: Tue, 14 Sep 2021 17:42:40 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH 1/8] arm64: add CPU field to struct thread_info To: Linus Torvalds Cc: Linux Kernel Mailing List , Keith Packard , Russell King , Catalin Marinas , Will Deacon , Michael Ellerman , 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 , Arnd Bergmann , Linux ARM , linuxppc-dev , linux-riscv , linux-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 17:41, Linus Torvalds wrote: > > On Tue, Sep 14, 2021 at 5:10 AM 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 arm64's definition of > > struct thread_info. > > The series looks sane to me, but it strikes me that it's inconsistent > - here for arm64, you make it unconditional, but for the other > architectures you end up putting it inside a #ifdef CONFIG_SMP. > > Was there some reason for this odd behavior? > Yes. CONFIG_SMP is a 'def_bool y' on arm64.