Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp3430405ioo; Mon, 30 May 2022 01:45:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzl4cGxqKWTZcPpZp7qwC/hjWXjlEyOr8smP3NFJugU8NdaWz1cXjNGvUbtcO3HkvBUam91 X-Received: by 2002:aa7:cc01:0:b0:42a:402b:b983 with SMTP id q1-20020aa7cc01000000b0042a402bb983mr57462972edt.257.1653900347612; Mon, 30 May 2022 01:45:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653900347; cv=none; d=google.com; s=arc-20160816; b=ctEtqcM/eb+5ehFCfQR9fPSe4Z5KeeSe+kkZqcwS7mllTm5l4f57Ae3u4Th2xIZShO N5dhkaqrb2HkVGKnsO1cZmuD/6FtU3zw4rx47gJ9WVzj4Ujtwxh69v2K0RneZbJ5QNO6 kZ/2gtN2/4vG1zx5cyyup47jE09Nsa7d36tSGYOZJAJc+xFqqDC+1S0CliEfhUK8vSvN dfxATv4iSM/AZTLhb+R+pJHCT9clYJf22OgVPNHj6xXaKGmaLcVkZmldGj/1h09DRtMc t2BMbYQJTCBr73jDXP3ixlrChz+l1LRiDMJtvHPlE6OW3gSbIzAbZd+grtwushxruu+i AcjQ== 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=EysWfF5qeT/K60N+isMImxlnThFx/sfgBlMy+ORwwxM=; b=vdmgsknPArNFhFqF7T6MUexi+ziFZjWj1UnMDQtXwDL1sBlR9V5ua7ZGRAUfPkp4iD dn1kBB6yG5jGybBBGs+1ZRsO5uLrgbwiREBxVr7K9X8ScTBTYxizyg2LSBYv/Ug2HRIH yeJjQkKVsUf/e5X75JPLk5L9sWxzlS7fqqGbRyzVSB36wW1Za265tDz5rxv+P/j4N89L O/5Q4OPyuSjTM5tOY2Z3N4BIBMQqJ5r2vl7H2PB3u/I7XxB7a6kdrbjfGRGCwDnb48av JMhVAFdhmDqs2HgBHbZqKmX2uF0a8Jg371nXP3s36a5/DnmDG+TMWwRUJlQIBxwdoPY0 W8WA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=hMFaKIjr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ds10-20020a0564021cca00b0042dce38b4a6si3185280edb.124.2022.05.30.01.45.21; Mon, 30 May 2022 01:45:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=hMFaKIjr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231600AbiE2SNu (ORCPT + 99 others); Sun, 29 May 2022 14:13:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230027AbiE2SNq (ORCPT ); Sun, 29 May 2022 14:13:46 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [176.9.125.105]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C994C703EB; Sun, 29 May 2022 11:13:43 -0700 (PDT) Received: from mwalle01.kontron.local. (unknown [213.135.10.150]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id DD05722249; Sun, 29 May 2022 20:13:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1653848022; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=EysWfF5qeT/K60N+isMImxlnThFx/sfgBlMy+ORwwxM=; b=hMFaKIjr+amijehDh8+e3iiiUcT+64o3AWh6bUUMHCsy7hmNrVceUQtadCNY18+KlxVRDO Eyu+EBG5ik/SUjaDQJSiEECotnP7YX6qEGY2Qm/8NDcrKSaGI8c5bn62AlD5zImuUMChud DTcf/Vgo/r8uxyFOIqBlVH1f2RIAook= From: Michael Walle To: Catalin Marinas , Sudeep Holla , Lorenzo Pieralisi , Daniel Lezcano , "Rafael J . Wysocki" , Will Deacon Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Michael Walle Subject: [PATCH 2/2] arm64: cpuidle: remove generic cpuidle support Date: Sun, 29 May 2022 20:13:29 +0200 Message-Id: <20220529181329.2345722-3-michael@walle.cc> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220529181329.2345722-1-michael@walle.cc> References: <20220529181329.2345722-1-michael@walle.cc> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The arm64 support of the generic ARM cpuidle driver was removed. This let us remove all support code for it. Signed-off-by: Michael Walle --- arch/arm64/include/asm/cpu_ops.h | 9 --------- arch/arm64/include/asm/cpuidle.h | 15 --------------- arch/arm64/kernel/cpuidle.c | 29 ----------------------------- 3 files changed, 53 deletions(-) diff --git a/arch/arm64/include/asm/cpu_ops.h b/arch/arm64/include/asm/cpu_ops.h index e95c4df83911..a444c8915e88 100644 --- a/arch/arm64/include/asm/cpu_ops.h +++ b/arch/arm64/include/asm/cpu_ops.h @@ -31,11 +31,6 @@ * @cpu_die: Makes a cpu leave the kernel. Must not fail. Called from the * cpu being killed. * @cpu_kill: Ensures a cpu has left the kernel. Called from another cpu. - * @cpu_init_idle: Reads any data necessary to initialize CPU idle states for - * a proposed logical id. - * @cpu_suspend: Suspends a cpu and saves the required context. May fail owing - * to wrong parameters or error conditions. Called from the - * CPU being suspended. Must be called with IRQs disabled. */ struct cpu_operations { const char *name; @@ -49,10 +44,6 @@ struct cpu_operations { void (*cpu_die)(unsigned int cpu); int (*cpu_kill)(unsigned int cpu); #endif -#ifdef CONFIG_CPU_IDLE - int (*cpu_init_idle)(unsigned int); - int (*cpu_suspend)(unsigned long); -#endif }; int __init init_cpu_ops(int cpu); diff --git a/arch/arm64/include/asm/cpuidle.h b/arch/arm64/include/asm/cpuidle.h index 14a19d1141bd..2047713e097d 100644 --- a/arch/arm64/include/asm/cpuidle.h +++ b/arch/arm64/include/asm/cpuidle.h @@ -4,21 +4,6 @@ #include -#ifdef CONFIG_CPU_IDLE -extern int arm_cpuidle_init(unsigned int cpu); -extern int arm_cpuidle_suspend(int index); -#else -static inline int arm_cpuidle_init(unsigned int cpu) -{ - return -EOPNOTSUPP; -} - -static inline int arm_cpuidle_suspend(int index) -{ - return -EOPNOTSUPP; -} -#endif - #ifdef CONFIG_ARM64_PSEUDO_NMI #include diff --git a/arch/arm64/kernel/cpuidle.c b/arch/arm64/kernel/cpuidle.c index 3006f4324808..4150e308e99c 100644 --- a/arch/arm64/kernel/cpuidle.c +++ b/arch/arm64/kernel/cpuidle.c @@ -13,35 +13,6 @@ #include #include -#include -#include - -int arm_cpuidle_init(unsigned int cpu) -{ - const struct cpu_operations *ops = get_cpu_ops(cpu); - int ret = -EOPNOTSUPP; - - if (ops && ops->cpu_suspend && ops->cpu_init_idle) - ret = ops->cpu_init_idle(cpu); - - return ret; -} - -/** - * arm_cpuidle_suspend() - function to enter a low-power idle state - * @index: argument to pass to CPU suspend operations - * - * Return: 0 on success, -EOPNOTSUPP if CPU suspend hook not initialized, CPU - * operations back-end error code otherwise. - */ -int arm_cpuidle_suspend(int index) -{ - int cpu = smp_processor_id(); - const struct cpu_operations *ops = get_cpu_ops(cpu); - - return ops->cpu_suspend(index); -} - #ifdef CONFIG_ACPI #include -- 2.30.2