Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp360917pxb; Thu, 30 Sep 2021 07:38:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0f/ssqc3DXu48CukwqVTK1M6nTF6wpkI590UKODqfzeIz4vuYg503VmLV1ymVduQmS6jO X-Received: by 2002:a17:906:645:: with SMTP id t5mr7061782ejb.163.1633012710658; Thu, 30 Sep 2021 07:38:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633012710; cv=none; d=google.com; s=arc-20160816; b=VT9Ar+FHSPrnhBOUggM5vFG4lxcVdE1VzoIgZI7NHqkxuebuZXWV/BMrwcIJM9PM7E jaK2QiZrRM241mNtG8F1z2ZVSmk9laTepNMFoHQHi2IdjjBzG1dYvMk5SwwQFUdpspMX X8C6m3AhZ5stgL5twmkyTs88BPwhXjRSvsc+/ZV1bLjIAAIkckbDjBrfA9qlgB/CsSBX NUfOIQpOA5Y8WHMUTg4C5fqdsVCRZFEpk5I0g6gxpMZXJ6gXHxCedJjxrryDT84k4fD5 Y2uGNGdy1mUaDKRR2pkYvo1zKZ5ItwGo126GVbzYDTb0LXfUwxm71S4luIMEPhdJLazG D9IA== 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=mxB3tg7JZEMbvZCWcQGoxgIKjBko7Y9IpHbPzGDVgUM=; b=xh7/OE01ou9fNE1zf0D2YihtFGFnl10qlCKLKVfBhe5Ol1EMcJnyeS3yhvnMNGZcMf Hxcn9ydK7U3YIuEsm8ev6Vj0DtJoqavTt2gnusTWqSoSg/pzr72JSREVa3DW9/Qu2qMO 4flo3WqE+fU/2+OgtE2G3hnvLB9hoJHhkihDLcS44ZI5jb2Tsmx0zeoeCIGteO8mkXke aoZ2UP0rlzjRiq3SXQfaDYG386tLG70up/9k/qMq/RTNRhr/wXYiKXv6DgK76SrQxcwi atnjRNUnEFz8lKVlbzCKJnJgta5gv1E3j6OvXEXoa7Jcw792Vmm6k+UG/6l59LBnfmn5 UFEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=J+htrJUy; 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 v23si3668846ejh.759.2021.09.30.07.38.05; Thu, 30 Sep 2021 07:38:30 -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=J+htrJUy; 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 S1351229AbhI3NAr (ORCPT + 99 others); Thu, 30 Sep 2021 09:00:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:56160 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349111AbhI3NAq (ORCPT ); Thu, 30 Sep 2021 09:00:46 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 22BC961528; Thu, 30 Sep 2021 12:58:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1633006743; bh=TOF8STtRDv74ETax3OGEGRc7TQEeChSrYXq2Jocmvb8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=J+htrJUyjNY4OYi7Ui2lk+U/fKUYJGdkR1BsiuPUyF85SSnjdsrE3NOjn6InnwGMQ 3qHVAyX8Qqz/TMvdNnO5XhhQJEAkyRSi4Zkz3L8CVNZPDdyJWiRIZaTSCGvj/PVwIX X9XELU0ZAqrTYQPDSp+wO2zsN9xyKky6IIgbxPIGM6fDvp1a3SARGI6FJ2k8+a6Ojd dSd/2UUmdyJiLpOwd0wZN40/r5aOXTMeVHOxgbg4ALbx7IdXuaToufsZy6ryNvKJ35 s45YrniEHPdCV9A50Nstq47iW2mI8ukkEnaVL8nAgb3MW4AiDdAueIzKffZFrAtA4a 8P01+nAgs7iyw== 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 , Vasily Gorbik , Christian Borntraeger , Mark Rutland Subject: [PATCH v2 3/7] s390: add CPU field to struct thread_info Date: Thu, 30 Sep 2021 14:58:09 +0200 Message-Id: <20210930125813.197418-4-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 s390's definition of struct thread_info. Note that s390 always has CONFIG_SMP=y so there is no point in guarding the CPU field with an #ifdef. Cc: Heiko Carstens Cc: Vasily Gorbik Cc: Christian Borntraeger Signed-off-by: Ard Biesheuvel Acked-by: Mark Rutland --- arch/s390/include/asm/thread_info.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/s390/include/asm/thread_info.h b/arch/s390/include/asm/thread_info.h index e6674796aa6f..b2ffcb4fe000 100644 --- a/arch/s390/include/asm/thread_info.h +++ b/arch/s390/include/asm/thread_info.h @@ -37,6 +37,7 @@ struct thread_info { unsigned long flags; /* low level flags */ unsigned long syscall_work; /* SYSCALL_WORK_ flags */ + unsigned int cpu; /* current CPU */ }; /* -- 2.30.2