Message ID | 1706524834-11275-2-git-send-email-mihai.carabas@oracle.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-42652-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2087:b0:106:209c:c626 with SMTP id gs7csp512220dyb; Mon, 29 Jan 2024 03:57:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IE25NtVATjtY8uQGIbC3KJ7Puz7LROFO92MYKr59EPINqOBqY1YSRwYmAwslcM6Gw7hEtIN X-Received: by 2002:a05:6122:46a8:b0:4b6:ce08:cc76 with SMTP id di40-20020a05612246a800b004b6ce08cc76mr1609193vkb.9.1706529463282; Mon, 29 Jan 2024 03:57:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706529463; cv=pass; d=google.com; s=arc-20160816; b=Ei9vFMwvrxmzLtnUBSiVRbbGa09W59Sr19mcKyKxzGFYfQ2Qzh8o/JJeElh+YeNEbE 9ySLo+YT2zbiPPLwz7mAQ9LatmzXo3c1QPzAq+00EJMPpB7OQsZYNXkn7VDmyswvN/Ss dqyAX1eD4BepB58gEEUUOE8TTvMch0BfaEf8u+2gq8nyLBXvEnMHbhFvU5zcKJAn78mv 5l+FKUDmFNGcOFA1fTwYNys6KXE4F+maZFQl8zsNPKAqu87l+wa4a5eh5QboKC2JbAl2 1/2Cdj6yMc/vR7mw4H+Gyay0kAUQkcq3cH2CyJcRY1Bv4mpbJUGGfGNBII2f7IxXd/M/ c8Aw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=Z9qDnSm8OWwlAaxt9Fnk40RHUt26ekA0qcYXgbx3N2g=; fh=cS+D6/15hJDwIQ5zbz5Bx0CwkimikQX+QlxAa68UNgo=; b=fZUgyHwqqwtcIXWXDDSrgoLQvBlNa/fAjuZzqP8YSC7I/dVzkmU5CaFGorUWYlnmX2 dlH0eAJ/inHCPb3ODeglzyx1Jr4DqKyjw/x8kC/yzk2Qxy3rv4QuJ3MyEuifcU+3aZJc p1hDirdCqjqI0+Skx9A63tKN4G5VXLBpNyMJ07QaXhMVAtYLFtOYt1IGr9DA/pcwFRjt ET5ds72tT7M3Suu5umb/IoSDWANJdfdyVKfwTxk4JZZJPXp8WoobfocWKkVqa63xJrpw IA9NEkIdwxqWpw8Ls3WYGu4ISGtmbMdmKwPnV/do34krKGnT9jtsTnbJIq2UTe47FAZz H8Pg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-11-20 header.b=nBMoaWfX; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel+bounces-42652-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42652-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id q5-20020a05621419e500b00686b151b5ddsi7367849qvc.386.2024.01.29.03.57.43 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 03:57:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-42652-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-11-20 header.b=nBMoaWfX; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel+bounces-42652-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42652-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 156351C22A2F for <ouuuleilei@gmail.com>; Mon, 29 Jan 2024 11:57:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DA26960885; Mon, 29 Jan 2024 11:56:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="nBMoaWfX" Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6DD7F60868; Mon, 29 Jan 2024 11:56:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.165.32 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706529401; cv=none; b=QxppGypOcBgCcthXfs1S5v8mQlYOjVanEUrBL0YS0asJFa1nLhks6gLhxmWE/LsyIaCrKTm8TpWwMvWWSV38arIKEIJm837smcEQQJFtfOp/utbU1zJltzf4wYuMNlxwJgWhTZFvoZo/Fj1BD3NblVHWUbKWJbAE5CahPlF2Rdg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706529401; c=relaxed/simple; bh=xi7YP0n2K4yFSd2jqDSsLMpbqfYwHLVWBJxbmKyKXX8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=MlNLfinyUCPovoCx3FGPbcrMMfjZCy97SXTbABqIC3vbETiYSjxglT7eoQK+Nj1yG5ohNF0luF5zK+vLvJfWJrmyObue5hrtq/Nbx5wxFw1o/8fe+4dNXPj86FEsm8nHg+Fm6k5LH/TN7A05zq7ZZ9B0ejwwGFJ1Xicy1n7E2AA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oracle.com; spf=pass smtp.mailfrom=oracle.com; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b=nBMoaWfX; arc=none smtp.client-ip=205.220.165.32 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oracle.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oracle.com Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 40T9iRll015940; Mon, 29 Jan 2024 11:55:54 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references; s=corp-2023-11-20; bh=Z9qDnSm8OWwlAaxt9Fnk40RHUt26ekA0qcYXgbx3N2g=; b=nBMoaWfXQOwOo7LbAMW6V8tOZKPfKrMMieXrkRf1tVlkxeRGf+Ix4EAEakx03U3o109q JpXuiv/8jSZ0UCmYCglo2kw1RiCn254trrQpD+QpL7xXsa8hS11NRB+AQsY68lTDy1Jm qAmkDThI4QgLMZgrBudZn0G9A+thCt4FPPrrDXz4BDi2NTQVdOxPpsn2cTOEMRHMzZO+ eJqshjbeN7f/BKbK7om5XpginGKJPABrl6K7oTK+JgRtUFjtk4DF0H8u9YYbFr2ZPMVX 6IV6Eo0DeF3RLg3XNoiI/DO/jZuwL7Z6c61Ng7/mMvC+t7neBlNGj9h7zD04scWhRtGx 6g== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3vvtcuukg6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 29 Jan 2024 11:55:53 +0000 Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 40TBEgP0035372; Mon, 29 Jan 2024 11:55:52 GMT Received: from pps.reinject (localhost [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3vvr9bhcvv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 29 Jan 2024 11:55:52 +0000 Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 40TBtni6038181; Mon, 29 Jan 2024 11:55:51 GMT Received: from mihai.localdomain (ban25x6uut25.us.oracle.com [10.153.73.25]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTP id 3vvr9bhcty-2; Mon, 29 Jan 2024 11:55:51 +0000 From: Mihai Carabas <mihai.carabas@oracle.com> To: linux-arm-kernel@lists.infradead.org Cc: kvm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, catalin.marinas@arm.com, will@kernel.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, x86@kernel.org, hpa@zytor.com, pbonzini@redhat.com, wanpengli@tencent.com, vkuznets@redhat.com, rafael@kernel.org, daniel.lezcano@linaro.org, akpm@linux-foundation.org, pmladek@suse.com, peterz@infradead.org, dianders@chromium.org, npiggin@gmail.com, rick.p.edgecombe@intel.com, joao.m.martins@oracle.com, juerg.haefliger@canonical.com, mic@digikod.net, mihai.carabas@oracle.com, arnd@arndb.de, ankur.a.arora@oracle.com Subject: [PATCH v3 1/7] x86: Move ARCH_HAS_CPU_RELAX to arch Date: Mon, 29 Jan 2024 12:40:28 +0200 Message-Id: <1706524834-11275-2-git-send-email-mihai.carabas@oracle.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1706524834-11275-1-git-send-email-mihai.carabas@oracle.com> References: <1706524834-11275-1-git-send-email-mihai.carabas@oracle.com> X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-01-29_06,2024-01-29_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 bulkscore=0 spamscore=0 phishscore=0 adultscore=0 mlxlogscore=999 suspectscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2401290086 X-Proofpoint-ORIG-GUID: TIDgASBHJXYtnPx3Vf4e7156qe29GyW2 X-Proofpoint-GUID: TIDgASBHJXYtnPx3Vf4e7156qe29GyW2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789425838143576270 X-GMAIL-MSGID: 1789425838143576270 |
Series |
[v3,1/7] x86: Move ARCH_HAS_CPU_RELAX to arch
|
|
Commit Message
Mihai Carabas
Jan. 29, 2024, 10:40 a.m. UTC
From: Joao Martins <joao.m.martins@oracle.com> ARM64 is going to use it for haltpoll support (for poll-state) so move the definition to be arch-agnostic and allow architectures to override it. Signed-off-by: Joao Martins <joao.m.martins@oracle.com> Signed-off-by: Mihai Carabas <mihai.carabas@oracle.com> --- arch/Kconfig | 3 +++ arch/x86/Kconfig | 4 +--- 2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/arch/Kconfig b/arch/Kconfig index 12d51495caec..626ddd9ba7e0 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -1371,6 +1371,9 @@ config RELR config ARCH_HAS_MEM_ENCRYPT bool +config ARCH_HAS_CPU_RELAX + bool + config ARCH_HAS_CC_PLATFORM bool diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 66bfabae8814..aaca90ba791a 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -72,6 +72,7 @@ config X86 select ARCH_HAS_CACHE_LINE_SIZE select ARCH_HAS_CPU_CACHE_INVALIDATE_MEMREGION select ARCH_HAS_CPU_FINALIZE_INIT + select ARCH_HAS_CPU_RELAX select ARCH_HAS_CURRENT_STACK_POINTER select ARCH_HAS_DEBUG_VIRTUAL select ARCH_HAS_DEBUG_VM_PGTABLE if !X86_PAE @@ -363,9 +364,6 @@ config ARCH_MAY_HAVE_PC_FDC config GENERIC_CALIBRATE_DELAY def_bool y -config ARCH_HAS_CPU_RELAX - def_bool y - config ARCH_HIBERNATION_POSSIBLE def_bool y