From patchwork Wed Jan 29 17:45:09 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Pitre X-Patchwork-Id: 23891 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f72.google.com (mail-qa0-f72.google.com [209.85.216.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7562C202FA for ; Wed, 29 Jan 2014 17:45:55 +0000 (UTC) Received: by mail-qa0-f72.google.com with SMTP id f11sf4295743qae.11 for ; Wed, 29 Jan 2014 09:45:54 -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=y13y1PPafDtWjIZJiVpG1g/fJMgNaprR0dNmAv4W4qs=; b=G376sgjCpq1sTt+3DIm6NsGcOTssu8bXaX7Yi4RAr98RR6vJrDyZIvOOguTo62LnUA EiSoPgXfKiARqONZmiV0u4Y9XLyICiFVpOdOlIqDtYWCLlVd8AnVulrODzDJOGtv2XSH sMZK2BU5OclaTfUkbE3/l54Y+kY8uuHZfGvFXrilzgy4cYzZbrSmH/pco+O9FqX4AKes KYY9dC5z1c28HTQfmWo5H9IEghy2nW47hYOZKG98cQpRK860/paOZeLhrkF5zKv+P+iE L9SVRQep4T5cYWb3mP/Aa19tHwwnIPWpVmUYzovtJ8Lr4VYRDdBUXoaC/UD0slOZUVnK DwQw== X-Gm-Message-State: ALoCoQn9iQ2IYqWEc7X8HKHOOI2rQBkUw0CD3/5rK0sPHW163grdJNIQW+MXi1eRtqmI1eZQz8u4 X-Received: by 10.236.142.140 with SMTP id i12mr2820212yhj.10.1391017554628; Wed, 29 Jan 2014 09:45:54 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.98.69 with SMTP id n63ls209785qge.96.gmail; Wed, 29 Jan 2014 09:45:54 -0800 (PST) X-Received: by 10.58.85.133 with SMTP id h5mr7495704vez.4.1391017554447; Wed, 29 Jan 2014 09:45:54 -0800 (PST) Received: from mail-vb0-f48.google.com (mail-vb0-f48.google.com [209.85.212.48]) by mx.google.com with ESMTPS id n17si1007755vcq.135.2014.01.29.09.45.54 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 29 Jan 2014 09:45:54 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.48 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.48; Received: by mail-vb0-f48.google.com with SMTP id q16so1344265vbe.7 for ; Wed, 29 Jan 2014 09:45:54 -0800 (PST) X-Received: by 10.52.113.97 with SMTP id ix1mr6342493vdb.9.1391017554354; Wed, 29 Jan 2014 09:45:54 -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 u4csp132615vcz; Wed, 29 Jan 2014 09:45:53 -0800 (PST) X-Received: by 10.69.0.10 with SMTP id au10mr9567706pbd.48.1391017553190; Wed, 29 Jan 2014 09:45:53 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id va10si3397903pbc.248.2014.01.29.09.45.52; Wed, 29 Jan 2014 09:45:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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 S1752751AbaA2Rp0 (ORCPT + 27 others); Wed, 29 Jan 2014 12:45:26 -0500 Received: from relais.videotron.ca ([24.201.245.36]:21485 "EHLO relais.videotron.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752056AbaA2RpV (ORCPT ); Wed, 29 Jan 2014 12:45:21 -0500 Received: from yoda.home ([66.130.143.177]) by VL-VM-MR006.ip.videotron.ca (Oracle Communications Messaging Exchange Server 7u4-22.01 64bit (built Apr 21 2011)) with ESMTP id <0N0600IRABZJOTG0@VL-VM-MR006.ip.videotron.ca>; Wed, 29 Jan 2014 12:45:19 -0500 (EST) Received: from xanadu.home (xanadu.home [192.168.2.2]) by yoda.home (Postfix) with ESMTP id 1E6D32DA063D; Wed, 29 Jan 2014 12:45:19 -0500 (EST) From: Nicolas Pitre To: Russell King , Benjamin Herrenschmidt , Preeti U Murthy , Paul Mundt , Thomas Gleixner , Ingo Molnar , Peter Zijlstra , "Rafael J. Wysocki" , Daniel Lezcano Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-sh@vger.kernel.org, linux-pm@vger.kernel.org, linaro-kernel@lists.linaro.org Subject: [PATCH v2 2/6] ARM: remove redundant cpuidle_idle_call() Date: Wed, 29 Jan 2014 12:45:09 -0500 Message-id: <1391017513-12995-3-git-send-email-nicolas.pitre@linaro.org> X-Mailer: git-send-email 1.8.4.108.g55ea5f6 In-reply-to: <1391017513-12995-1-git-send-email-nicolas.pitre@linaro.org> References: <1391017513-12995-1-git-send-email-nicolas.pitre@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@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.212.48 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: Daniel Lezcano --- arch/arm/kernel/process.c | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/arch/arm/kernel/process.c b/arch/arm/kernel/process.c index 92f7b15dd2..adabeababe 100644 --- a/arch/arm/kernel/process.c +++ b/arch/arm/kernel/process.c @@ -30,7 +30,6 @@ #include #include #include -#include #include #include @@ -133,7 +132,11 @@ EXPORT_SYMBOL_GPL(arm_pm_restart); void (*arm_pm_idle)(void); -static void default_idle(void) +/* + * Called from the core idle loop. + */ + +void arch_cpu_idle(void) { if (arm_pm_idle) arm_pm_idle(); @@ -168,15 +171,6 @@ void arch_cpu_idle_dead(void) #endif /* - * Called from the core idle loop. - */ -void arch_cpu_idle(void) -{ - if (cpuidle_idle_call()) - default_idle(); -} - -/* * Called by kexec, immediately prior to machine_kexec(). * * This must completely disable all secondary CPUs; simply causing those CPUs