Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3340112rwb; Wed, 30 Nov 2022 19:43:14 -0800 (PST) X-Google-Smtp-Source: AA0mqf7r7J88mTsUpBw4oeR45eWNuZp1rs89vTUlHZ9Xlyy1qe8BsOsuynCyXXqIBtkvTs1xEOxK X-Received: by 2002:a05:6402:3c1:b0:46b:2d74:d970 with SMTP id t1-20020a05640203c100b0046b2d74d970mr15823678edw.138.1669866194197; Wed, 30 Nov 2022 19:43:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669866194; cv=none; d=google.com; s=arc-20160816; b=MGXccAbwnICWL6DUatVquB1oKQBkiAowF302Yn7NGVEQlUlkgmJ+YjUEIVLfrpd0sp n3EHUOYR838GIvr4qmu0gt8/H9vN1XWIY9JlFTczUGTFUeIhEGO4dvB7SKF2WgBkMt55 KgCq3ofSsXRZy4G14s6GMXmFi5Vq2JR+w2juEAWTH+//B4Xt01avr3Qn/yjsbxQB9Ei/ CL7HbO0fE+motbDJSW7iAFdUPF7Bee6s50MRHuB4hUOFahu+IgQwraj+9cJ4RLsdwF6L xOxqISAdgw4lFaH7rxV34SxtU/TytsNPyUAP6hE3TQWI0c2nq5dkJduECkNmc8iceJfY B14A== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l3-20020a170907914300b007c0a7bc2857si1230568ejs.482.2022.11.30.19.42.55; Wed, 30 Nov 2022 19:43:14 -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 + 83 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 Content-Transfer-Encoding: 8bit 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 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); -- 2.25.1