Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6998689rwl; Fri, 30 Dec 2022 01:49:46 -0800 (PST) X-Google-Smtp-Source: AMrXdXsyfXlelUvlRt2S7jNyVY//xATIk3esT6BU5D4/BA21V0odlwThsk8lea/yhaTfjpjgqdRc X-Received: by 2002:a17:90a:d58a:b0:219:7d75:de7b with SMTP id v10-20020a17090ad58a00b002197d75de7bmr33451588pju.35.1672393785792; Fri, 30 Dec 2022 01:49:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672393785; cv=none; d=google.com; s=arc-20160816; b=ovjsKPQclcSIFbTDyWZRyjQbitbEJcd9Ew0tdrC1SU4Bkqq2xUMEM/15mktWV1Bsc9 YCilXY/vlq7EiQCLye+nA2cNp4eV7AP+jnT9ILcMhnsMVYvJAiwFw5BMdC8TNio5PLIo NfTBSD7/dLQQevZZ03iyuMJxgnzeeYnf5Trg9F66dH/OBGJrVY8f9hDLulIaJy2RlTdi WNzhQFYdHsZts6tldpFStkoh1RyjHUDrEsswXTqHMqsTTkrNCblgocXoYoUWfi0XUG3J lq5Q+QvnuQ9bJp7YS75vYx+LvnFRoulZdHK3P2UQcy6M/Z56fT40HPbsIBbmTNBPpBx6 HoAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:cc:to:subject:message-id :from:content-transfer-encoding:date:dkim-signature:mime-version; bh=W0YVvYHzhfhVLC1h+Hk5/AdGM7+lfwHu5eJUyiyijxE=; b=iwQrA+Wz6lc0QKlm6XzxE7i3iERM7+oIAvCSNlPwHwyxpUqBFmdB1VHssfr/HbhsBr 0RzfZ1WSrL/oT9frXUPwCIu4a0yUPPG4Aut6XpPle8rbKIUFloTHe/6JE1Nqp20c8zXC NLzfwlkLABn040mLmbKJGT3quvUfRAVPn5XT8xmXRKWlVNvEaBWkLxkqt087188/vxBN AFQxCJBOQq8tgLV5Ida5sCXZhqb67YOkIRU17DvrnlGCZTi6yYN72Yc9pgB4UpQH2tDi vIQlOASXLa4Egkf0Cbfxrt6MwmzeNAZSP5tgQxvKXSDpZ3Tf4oALJ6J0X+D0uJOY0Lin H7Vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="fXxK0Zq/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 4-20020a630604000000b00478e2f7cf23si21522546pgg.101.2022.12.30.01.49.26; Fri, 30 Dec 2022 01:49:45 -0800 (PST) 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=@linux.dev header.s=key1 header.b="fXxK0Zq/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234743AbiL3JQe (ORCPT + 64 others); Fri, 30 Dec 2022 04:16:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231130AbiL3JQa (ORCPT ); Fri, 30 Dec 2022 04:16:30 -0500 Received: from out2.migadu.com (out2.migadu.com [188.165.223.204]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2BC07DF4F for ; Fri, 30 Dec 2022 01:16:29 -0800 (PST) MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1672391787; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=W0YVvYHzhfhVLC1h+Hk5/AdGM7+lfwHu5eJUyiyijxE=; b=fXxK0Zq/6DQtLZRcmVE5W9LLUbEXWe8PezyuDVSm/8JdKiAEyRTU03Kf9iliXuOLvfnWyf 6Vvb0K0EeDyAJxvpVM7rb4Vh8mCLK+LqvLeprkxclueO/0kQZUz0QSu1jL+OKxK2GuCGU1 3bHSlqdpY5/+Tl3nq3FwR3eaK7+r9Mo= Date: Fri, 30 Dec 2022 09:16:26 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: "Yajun Deng" Message-ID: Subject: Re: [PATCH] ARM: Remove redundant arch_cpu_idle_prepare() To: rmk+kernel@armlinux.org.uk, keescook@chromium.org, gregkh@linuxfoundation.org, Jason@zx2c4.com, djwong@kernel.org, ebiederm@xmission.com, thunder.leizhen@huawei.com, ardb@kernel.org, wangkefeng.wang@huawei.com Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org In-Reply-To: <20221201031306.2782204-1-yajun.deng@linux.dev> References: <20221201031306.2782204-1-yajun.deng@linux.dev> X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS 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 December 1, 2022 11:13 AM, "Yajun Deng" wrote:=0A= =0A> arch_cpu_idle_prepare() was only called by cpu_startup_entry() and i= t is=0A> just a wrapper for local_fiq_enable().=0A> =0A> The local_fiq_en= able() was already called before cpu_startup_entry().=0A> =0A> So remove = redundant arch_cpu_idle_prepare().=0A> =0A> Signed-off-by: Yajun Deng =0A> ---=0A> arch/arm/kernel/process.c | 5 -----=0A> 1= file changed, 5 deletions(-)=0A> =0A> diff --git a/arch/arm/kernel/proce= ss.c b/arch/arm/kernel/process.c=0A> index f811733a8fc5..e3f490ab95f4 100= 644=0A> --- a/arch/arm/kernel/process.c=0A> +++ b/arch/arm/kernel/process= .c=0A> @@ -81,11 +81,6 @@ void arch_cpu_idle(void)=0A> raw_local_irq_enab= le();=0A> }=0A> =0A> -void arch_cpu_idle_prepare(void)=0A> -{=0A> - local= _fiq_enable();=0A> -}=0A> -=0A> void arch_cpu_idle_enter(void)=0A> {=0A> = ledtrig_cpu(CPU_LED_IDLE_START);=0A> -- =0A> 2.25.1=0A=0APing.