Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp361744pxb; Thu, 30 Sep 2021 07:39:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSrZvGLby2U0zKmcsaDYeACNURkIxFv8/GAFh7hSIewjvNcVhMjkI7kKIrUzlANKay294v X-Received: by 2002:a17:907:937:: with SMTP id au23mr7226963ejc.292.1633012765354; Thu, 30 Sep 2021 07:39:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633012765; cv=none; d=google.com; s=arc-20160816; b=kJPWO/Hw04o0RwbymMR3rn52DzjnpG3BPBZmdYrRJAjOsUuSNQURMphzNxhaqxZjoQ 7zUDIEFDSrDjBKALb0xtFbKB6MWZ1KM4qGCEy0QfiOXyjUkyXNjsGWT6NQKg+SUUh1Ft fnRKPolVm4a9RB5M8lCHsw3rsGxcvs4FzaeSgY1hP2DARD0AGkOudAz9OUzY9mR4jokD TkJ3wxV04o5x8xJf0vY6NDqea2Y5F2AcZMMpDqazeGkU0IoFjYV/+SBlXkgyfYOJFBW8 Nr1Fr/v7XatR/kYKkK+yxmEoX7AUImOe1XVRhxwcnVqAv6pg4uZ1tCUd+u8gAstipaxy 4Mbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=dSDqEqsA6EFYnuACO4o/ZkaJKRoH/FdjGUJxV2GC5+Y=; b=RvRKTmKr+xZ2aezO2Zcp4wYmXYnbHLlXeozIFwbuMbHgozwxCu/2fXkBCY8JHT24hi iNdVbjmNym1UkyYRAeq95MQhcpvYq6AHWWd2cdmQM4c7jvz6WRRXDB8jjH6LWm9b9xl5 YJka3mGwWa9FA3dmE0h7D8nWKLHDOcHGC4bNBGKLxQhm5AiZSqwYW13zr2jwB4bjGKtY E7ABN7vldnUs6yl3rdCdhQ5aZXHN6NQPfabpdlB6O0PXMtrfjQEvttLH3yTi7JxD/uAZ UR4BRv2ipVoVeixmg4ubWhTEBC4bZ/XiDh/n+5ekKZiGoL02BVjEWCDH39b2pOFAjbMR pT0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=vGxN1Eb4; 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 z11si4796573edc.313.2021.09.30.07.38.59; Thu, 30 Sep 2021 07:39: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=vGxN1Eb4; 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 S1349111AbhI3NAu (ORCPT + 99 others); Thu, 30 Sep 2021 09:00:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:56246 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351232AbhI3NAt (ORCPT ); Thu, 30 Sep 2021 09:00:49 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 165C261452; Thu, 30 Sep 2021 12:59:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1633006747; bh=jCHcYa/7N+9a8XZMbQeQt9e27EaFOuH4mjGUNTSKkGI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vGxN1Eb4+lTa1gXDJIoHfdnddhJkKkxFM03Myvg0CIqCfLPBKmbhsexHtLNuN7yxi CIZu2kOMW7b5/+wU5SAaV/umnIcvfnXfqkXzHQjjyExybKVli8CT6UbB2hHf8KfNKf cJkrWmzYLz4bFvzxqeMAYcUnA+/pmz5LAHWlEHh0eFdyAd1BfcPv76HngHsW+HIRuN 5UWsK310kf9TGpZCN/vvndprruAMi3V+DV4LxQKhdTh9EY9iH8el8OMKokypAGvx5v 85B4WwhY+hVE5SPk2OMsGLMZxIc2N/ZctgHIqRqyBD1hGjj6sLQswND+yntHKymv4e lQoHbUPqkm5sg== From: Ard Biesheuvel To: linux-kernel@vger.kernel.org Cc: Ard Biesheuvel , Keith Packard , Russell King , Catalin Marinas , Will Deacon , Michael Ellerman , Benjamin Herrenschmidt , Christophe Leroy , Paul Mackerras , Paul Walmsley , Palmer Dabbelt , Albert Ou , Heiko Carstens , Mark Rutland Subject: [PATCH v2 4/7] powerpc: add CPU field to struct thread_info Date: Thu, 30 Sep 2021 14:58:10 +0200 Message-Id: <20210930125813.197418-5-ardb@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210930125813.197418-1-ardb@kernel.org> References: <20210930125813.197418-1-ardb@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Acked-by: Mark Rutland Acked-by: Michael Ellerman --- 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