Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp359505pxb; Thu, 30 Sep 2021 07:36:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytQmv5vtOOXCHvN6kt6S86zE2/DriQROP9bcUNrXiBIjx6P0xlVya8zVXW69WVJzeFipFY X-Received: by 2002:a17:906:31d7:: with SMTP id f23mr6894047ejf.190.1633012609172; Thu, 30 Sep 2021 07:36:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633012609; cv=none; d=google.com; s=arc-20160816; b=pOt9/K/c9j+QTj4ShfKn6g4bR9PUzhU2qoMmRiufANWw9zEtLislTlsb2C2p2I0dUd S8VIkSX/v+ggpmk8Gczx9q7sHn10h/1QbLKhz1dXDKZdKrmag3TstFH92+Mdm6MN/SOr VBUY7J/gEOr4YWQHvYI/HrtdJac6Ne9sqxrdmZkcaq+YzELUrdy771R5hWO7byF6fJYr m0ES6nPAbAiQujb4rOeuCpfMGXkwT+Jii9r2H/T1LCdDPBwaaJ4u1/sSxQT06TL8CNuD 1UcVRw6LymIJyXODyauHpEi3dZv40qRhYhXFIrEgJ4747ji5yIoZG/5GaUWEmzpjzlJd x+LQ== 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=hFqGENGp8D2elKedI+t9JdiCSRHUJykPMo7meWKbvwE=; b=ImE3DjzleiIVHyCj/qKjKpBSgqEnkOmGkJEIvCE76FlQft7m5pOL/GrcKrlj3dGDH5 eVo91kkE/fBYqYn2ugGK1Dyx2MfwlLXLEBBLJaQfYYfjefskab2Gv05u2VimQa+Sif59 tO9PwFPMAj5y4Tt1RmJFM1N3AlWUSvGF4jkmPZMxWplY15eV+wuPUp5GFJ+GhvvTwYse iWhMUNxjhlUgSG/TsJBLoo8zt1M2zGSlJRmC1aIyp3iqC53TpjgaO0XYb3mkW09ecuwh u6joy7daIF1V9gWCC/3mnndpheQ3Swu7rP9l+3RpKCJBza8jJrza8bXXcH5Y3ODflu9A DsKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=j4uwmn9t; 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 ec26si3295679edb.116.2021.09.30.07.36.24; Thu, 30 Sep 2021 07:36:49 -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=j4uwmn9t; 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 S1351215AbhI3NAn (ORCPT + 99 others); Thu, 30 Sep 2021 09:00:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:56038 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351223AbhI3NAm (ORCPT ); Thu, 30 Sep 2021 09:00:42 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 57D056124B; Thu, 30 Sep 2021 12:58:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1633006739; bh=/kR3+wilfL5yKlLOpGClhsB9X4dt2V1ZGldO2lpLG1w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=j4uwmn9tNHzdrqkVwc6rtnS8fNSYoLvR8k2p+HjvHbxegEB2G64pMGvvKi5qXYdxX jdwYU/JorHKKX67+pCpo+vUrpbQh0mGjea0QAqRTer2HGK9nk10KnjWyhME0WqcqXb 4tS9JphvxwrbXWDY2Ys4f8OF0nL1EWSjoTyv5lyyRCJGrgX9DZKlak8Thfb/4l4zi7 jG392zrASwDCtUN9mAEaItZ5ASejIFSWJXoMzPv1nMFBCw4q1/+b95HgefGot21Ham WxPNfJGtjEjv0iT3wPmjAe127I4WBAaZdvjl/8OCUHqF4D9a/36okGKxhImx9Dr/h9 0W3Mh+/xMsd9A== 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 , Borislav Petkov , Mark Rutland Subject: [PATCH v2 2/7] x86: add CPU field to struct thread_info Date: Thu, 30 Sep 2021 14:58:08 +0200 Message-Id: <20210930125813.197418-3-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 x86's definition of struct thread_info. Signed-off-by: Ard Biesheuvel Acked-by: Borislav Petkov Acked-by: Mark Rutland --- arch/x86/include/asm/thread_info.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/include/asm/thread_info.h b/arch/x86/include/asm/thread_info.h index cf132663c219..ebec69c35e95 100644 --- a/arch/x86/include/asm/thread_info.h +++ b/arch/x86/include/asm/thread_info.h @@ -57,6 +57,9 @@ struct thread_info { unsigned long flags; /* low level flags */ unsigned long syscall_work; /* SYSCALL_WORK_ flags */ u32 status; /* thread synchronous flags */ +#ifdef CONFIG_SMP + u32 cpu; /* current CPU */ +#endif }; #define INIT_THREAD_INFO(tsk) \ -- 2.30.2