From patchwork Mon Feb 17 15:59:30 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Pitre X-Patchwork-Id: 24780 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f198.google.com (mail-pd0-f198.google.com [209.85.192.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A8089202B2 for ; Mon, 17 Feb 2014 16:00:26 +0000 (UTC) Received: by mail-pd0-f198.google.com with SMTP id v10sf34580678pde.1 for ; Mon, 17 Feb 2014 08:00:25 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe :content-transfer-encoding; bh=jTMIX/Ui58cISPucCXi/a6KmKyoK7P6uoZhGWc0oWuE=; b=jeIEhL8xwQnTSeLUpd1FHEkkVZj26yUTw48thbWM05bAoOLg6RBCxcd1Re7a/10cUq f1p0KzGatbORQ06/j/6OjCb/mD0nyO7llCr2Pkz8mWZk2YHs2XR6aIKtn/VvSbnPuJkr 38YUI56L8KJMks43mDCznyysecnX2mXiryjFR05vGNwSSWPGVnmbhmjr4i9GZaLjgs4c kF5d9Gf70ab6CW5JApAipqlt/piwNa6M4K5HZ3LUIjQZW5HC40gNU/4qfNtrXDyXGV4P KH5ujM0lwMXN6enyo7jPGtcti1x8icaCm7POTfVWSU8IVpAZD3TYaiCHui0yOTzmlQjD PLfA== X-Gm-Message-State: ALoCoQkouBu2COuGGS6IY1bC/pu2wj4AL9WQaMk9Lj65BRi5/gqMGb8SocqpEpERniw992X5qSlS X-Received: by 10.69.16.98 with SMTP id fv2mr10575648pbd.7.1392652825787; Mon, 17 Feb 2014 08:00:25 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.23.80 with SMTP id 74ls1066658qgo.61.gmail; Mon, 17 Feb 2014 08:00:25 -0800 (PST) X-Received: by 10.220.106.84 with SMTP id w20mr17589383vco.18.1392652825618; Mon, 17 Feb 2014 08:00:25 -0800 (PST) Received: from mail-ve0-f181.google.com (mail-ve0-f181.google.com [209.85.128.181]) by mx.google.com with ESMTPS id cz20si4564110veb.91.2014.02.17.08.00.25 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 17 Feb 2014 08:00:25 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.181 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.181; Received: by mail-ve0-f181.google.com with SMTP id cz12so12073521veb.26 for ; Mon, 17 Feb 2014 08:00:25 -0800 (PST) X-Received: by 10.220.192.71 with SMTP id dp7mr744460vcb.45.1392652825537; Mon, 17 Feb 2014 08:00:25 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.174.196 with SMTP id u4csp149317vcz; Mon, 17 Feb 2014 08:00:25 -0800 (PST) X-Received: by 10.66.136.71 with SMTP id py7mr27670687pab.2.1392652824677; Mon, 17 Feb 2014 08:00:24 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id sj7si8113337pbb.239.2014.02.17.08.00.22; Mon, 17 Feb 2014 08:00:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752894AbaBQQAU (ORCPT + 11 others); Mon, 17 Feb 2014 11:00:20 -0500 Received: from relais.videotron.ca ([24.201.245.36]:50032 "EHLO relais.videotron.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752786AbaBQQAR (ORCPT ); Mon, 17 Feb 2014 11:00:17 -0500 Received: from yoda.home ([66.130.143.177]) by VL-VM-MR003.ip.videotron.ca (Oracle Communications Messaging Exchange Server 7u4-22.01 64bit (built Apr 21 2011)) with ESMTP id <0N1500HJEDS8DV10@VL-VM-MR003.ip.videotron.ca>; Mon, 17 Feb 2014 11:00:09 -0500 (EST) Received: from xanadu.home (xanadu.home [192.168.2.2]) by yoda.home (Postfix) with ESMTP id CA8D02DA05F8; Mon, 17 Feb 2014 11:00:08 -0500 (EST) From: Nicolas Pitre To: Ingo Molnar , Peter Zijlstra Cc: Paul Burton , Deepthi Dharwar , Preeti U Murthy , "Rafael J. Wysocki" , Daniel Lezcano , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linaro-kernel@lists.linaro.org Subject: [PATCH 2/2] cpuidle/arm64: remove redundant cpuidle_idle_call() Date: Mon, 17 Feb 2014 10:59:30 -0500 Message-id: <1392652770-19397-3-git-send-email-nicolas.pitre@linaro.org> X-Mailer: git-send-email 1.8.4.108.g55ea5f6 In-reply-to: <1392652770-19397-1-git-send-email-nicolas.pitre@linaro.org> References: <1392652770-19397-1-git-send-email-nicolas.pitre@linaro.org> Sender: linux-pm-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: nicolas.pitre@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.181 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Content-transfer-encoding: 7BIT The core idle loop now takes care of it. Signed-off-by: Nicolas Pitre Acked-by: Catalin Marinas Acked-by: Thomas Gleixner --- arch/arm64/kernel/process.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/arch/arm64/kernel/process.c b/arch/arm64/kernel/process.c index 1c0a9be2ff..9cce0098f4 100644 --- a/arch/arm64/kernel/process.c +++ b/arch/arm64/kernel/process.c @@ -33,7 +33,6 @@ #include #include #include -#include #include #include #include @@ -94,10 +93,8 @@ void arch_cpu_idle(void) * This should do all the clock switching and wait for interrupt * tricks */ - if (cpuidle_idle_call()) { - cpu_do_idle(); - local_irq_enable(); - } + cpu_do_idle(); + local_irq_enable(); } #ifdef CONFIG_HOTPLUG_CPU