From patchwork Thu Dec 1 03:13:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yajun Deng X-Patchwork-Id: 28173 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp52214wrr; Wed, 30 Nov 2022 19:34:18 -0800 (PST) X-Google-Smtp-Source: AA0mqf7hrlUM2wCOQP43hGUnqAzD40Euk87PwS3Pmv5O60g/IqSfSNYyLLckCweo22AbNhifUCeH X-Received: by 2002:a62:62c4:0:b0:575:e44e:3e0 with SMTP id w187-20020a6262c4000000b00575e44e03e0mr5195641pfb.53.1669865658259; Wed, 30 Nov 2022 19:34:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669865658; cv=none; d=google.com; s=arc-20160816; b=HqpO9vhegygZ36nU3Gi/BuToneKyskfvDcuBKZQntA0EsAbU7ockY1Mp7NNXub9G62 rrOscndyQPay9XZJMubaVBwgHGkvCWbFlRO4cXNmI5SKbvFy6YRZdeHeabzl4fFLlG4T UJ972+OPx0rcXnD6HguW+bndgBuwWiwA8Cs6xzZ/+jpg7D8RVSTORnRc1w0W/mtAYEIm /sbqmM1KpphL/gQ5noYl0607nRfF4Tb4Qsx8zXelw5hPSYch2FcE6w9l4lWRJILZjgMl O5B+wYENvPWCKXoUCqL8opoTd4iHOn1oxxxYOQIooqWGbapCBiUUK62HB6K/02vIvqa0 kK0A== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=SaM+GTjZfJmbOUpTQs/U3f0sQfHp+chDykvHNK7BLiw=; b=Owp9Rh7Sh+npkqscpuS8KKKx2+ryDU+lS9ZxDCmfCwfhUGa5wMXexwSjRKPxiE+LWz 2BhUokj3oUWrCerRjCq4bf2xqvj5hNkPpVXuoSeoXRdGa0EgygZFX6IwPz0z9xflq8tX kmiz9N8I1Q+YL05I7xWuVprk4qr7z+9waEu3iqCFB7dDabEv3l3iGMgqf9ehad6O/ndn PQgz0amD58u0OTw9mLfJ7RzFX1WKdfswLypt+m9b8ZLZId1ATxYpM85frULZwJQLyF1A H6ASliNysSKSsTShHASaHK/CNjBwsKnW1//6H5/opVsEzDPvVmLaMWAuDIoxlTnN515J JZpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="IZwlSd/J"; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 77-20020a621550000000b00571d4ca44ddsi3386385pfv.333.2022.11.30.19.33.32; Wed, 30 Nov 2022 19:34:18 -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="IZwlSd/J"; 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 S229622AbiLADNr (ORCPT + 99 others); Wed, 30 Nov 2022 22:13:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229515AbiLADNp (ORCPT ); Wed, 30 Nov 2022 22:13:45 -0500 Received: from out2.migadu.com (out2.migadu.com [188.165.223.204]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B918754468 for ; Wed, 30 Nov 2022 19:13:43 -0800 (PST) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1669864422; 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; bh=SaM+GTjZfJmbOUpTQs/U3f0sQfHp+chDykvHNK7BLiw=; b=IZwlSd/J8MJXz1xM7v29XlDvNRe0dBF9l8WauEjLuiAGymi8UgKxrL3OPI5NdwUHj8qpCJ RdlJBBGFyaPyBd2I8u3KU5Pp321goHksPnA236HHaubHGxnaPeIogO3OoWtHR6TcaGV6US Zh+9GnZbrcxbt5JPwV08xXhvZBp21dM= From: Yajun Deng 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, Yajun Deng Subject: [PATCH] ARM: Remove redundant arch_cpu_idle_prepare() Date: Thu, 1 Dec 2022 11:13:06 +0800 Message-Id: <20221201031306.2782204-1-yajun.deng@linux.dev> MIME-Version: 1.0 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750981052195413693?= X-GMAIL-MSGID: =?utf-8?q?1750981052195413693?= arch_cpu_idle_prepare() was only called by cpu_startup_entry() and it is just a wrapper for local_fiq_enable(). The local_fiq_enable() was already called before cpu_startup_entry(). So remove redundant arch_cpu_idle_prepare(). Signed-off-by: Yajun Deng --- arch/arm/kernel/process.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/arch/arm/kernel/process.c b/arch/arm/kernel/process.c index f811733a8fc5..e3f490ab95f4 100644 --- a/arch/arm/kernel/process.c +++ b/arch/arm/kernel/process.c @@ -81,11 +81,6 @@ void arch_cpu_idle(void) raw_local_irq_enable(); } -void arch_cpu_idle_prepare(void) -{ - local_fiq_enable(); -} - void arch_cpu_idle_enter(void) { ledtrig_cpu(CPU_LED_IDLE_START);