From patchwork Wed Aug 9 11:39:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mihai Carabas X-Patchwork-Id: 13347925 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 189E4C0015E for ; Wed, 9 Aug 2023 12:53:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Vz52BPJfVl/c2SkjIQpVVKOAzaSEIaIrZVNDtQ0QCa8=; b=RWoaPWGJsfsi/x fsnchUa1EdpRUDLFnAutE/r7xK3UGJ5k8bFQE9ASqJYgrZCmCxGhvRkqs1wcYY+Y4LdKEbmzO73BQ NnRxnuRvcpn8nNv0dXOi2ugQZ5TC5arR2dmjbUuyhJCdbjqZqd8KP2jWjyYXsAIAp509dpfFqGv1y 9FL9BASC81RcgBmlz8E/V2Vio5axZwtsW+SUhVYA2isWs6SLyyYLp7iw2SZmPieYHXDsjiKMhQ6VB JrTk/aokwuXbBEcDAoJVcBDvQ+X02NaUJ1UR3Yao3l35GNOMrkIw9UC/xtikA+pgmHzGd1Q5kbWP/ nMXPIr9lF8wV53jZWxCQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qTige-004vf8-0p; Wed, 09 Aug 2023 12:53:16 +0000 Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qTigT-004vbz-17 for linux-arm-kernel@lists.infradead.org; Wed, 09 Aug 2023 12:53:07 +0000 Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 379Cpatv031355; Wed, 9 Aug 2023 12:52:29 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-03-30; bh=0QZsX2jbO6id/iaRRnv0TmxxvvP8rcGnUdjnrbggVeE=; b=EHPw1hrrhg1yTQEwYhDBLlnh0EFQdIXvnIdONYKFcH9mYEL+H58uVVEOZmnLxlgW2WiL KYhi4J0qi1VbdPagCMKL8BXbli2efIWvj55uO62+moCIcT7oJRGQSytHMV71FYB8Rp9k XWN+ppHZw6i1S9MtN5By2iGfrY/tZX0iBDcur+hS28ldrouHJdsw4BcLNavlyo27aJOs kQPMQfXBxtEbvpKLELqcsuqSRIIA4RIWE7nWPiw5GB38ce1dFJGXb45E7IryGV937wIv rYywDyGInS8ZTAYIaEzTigl80IezjPngwcTeDwInoY6oUzlAy9W4gLiiWks4/yHhUCS5 /g== Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3s9e1u8gup-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 09 Aug 2023 12:52:29 +0000 Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 379C0l5O021712; Wed, 9 Aug 2023 12:52:28 GMT Received: from pps.reinject (localhost [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3s9cvdyfg1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 09 Aug 2023 12:52:28 +0000 Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 379CqCGF027258; Wed, 9 Aug 2023 12:52:27 GMT Received: from mihai.localdomain (ban25x6uut25.us.oracle.com [10.153.73.25]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTP id 3s9cvdyf90-2; Wed, 09 Aug 2023 12:52:27 +0000 From: Mihai Carabas To: Cc: Joao Martins , Mihai Carabas , Catalin Marinas , Will Deacon , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Paolo Bonzini , Wanpeng Li , Vitaly Kuznetsov , "Rafael J. Wysocki" , Daniel Lezcano , Andrew Morton , Kees Cook , Peter Zijlstra , Petr Mladek , Ard Biesheuvel , Sami Tolvanen , Nicholas Piggin , Juerg Haefliger , =?utf-8?q?Micka=C3=ABl_Sal?= =?utf-8?q?a=C3=BCn?= , Arnd Bergmann , Ankur Arora , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org, linux-pm@vger.kernel.org Subject: [PATCH 1/7] cpuidle-haltpoll: Make boot_option_idle_override check X86 specific Date: Wed, 9 Aug 2023 14:39:35 +0300 Message-Id: <1691581193-8416-2-git-send-email-mihai.carabas@oracle.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1691581193-8416-1-git-send-email-mihai.carabas@oracle.com> References: <1691581193-8416-1-git-send-email-mihai.carabas@oracle.com> X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-08-09_10,2023-08-09_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 malwarescore=0 spamscore=0 adultscore=0 mlxlogscore=999 bulkscore=0 phishscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2308090113 X-Proofpoint-GUID: 12Ohs6U9gYefr7PsRh_c7KrFj31d0E8M X-Proofpoint-ORIG-GUID: 12Ohs6U9gYefr7PsRh_c7KrFj31d0E8M X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230809_055305_497904_555B7DF6 X-CRM114-Status: GOOD ( 17.78 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Joao Martins In the pursuit of letting it build on ARM let's not include what is x86 specific. Signed-off-by: Joao Martins Signed-off-by: Mihai Carabas --- drivers/cpuidle/cpuidle-haltpoll.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/cpuidle/cpuidle-haltpoll.c b/drivers/cpuidle/cpuidle-haltpoll.c index e66df22f9695..0ca3c8422eb6 100644 --- a/drivers/cpuidle/cpuidle-haltpoll.c +++ b/drivers/cpuidle/cpuidle-haltpoll.c @@ -104,9 +104,11 @@ static int __init haltpoll_init(void) int ret; struct cpuidle_driver *drv = &haltpoll_driver; +#ifdef CONFIG_X86 /* Do not load haltpoll if idle= is passed */ if (boot_option_idle_override != IDLE_NO_OVERRIDE) return -ENODEV; +#endif if (!kvm_para_available() || !haltpoll_want()) return -ENODEV;