From patchwork Sun Feb 10 05:58:13 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Len Brown X-Patchwork-Id: 2121601 X-Patchwork-Delegate: lenb@kernel.org Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id D7F733FCD5 for ; Sun, 10 Feb 2013 06:01:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752758Ab3BJGBg (ORCPT ); Sun, 10 Feb 2013 01:01:36 -0500 Received: from mail-vb0-f41.google.com ([209.85.212.41]:33573 "EHLO mail-vb0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752240Ab3BJF6j (ORCPT ); Sun, 10 Feb 2013 00:58:39 -0500 Received: by mail-vb0-f41.google.com with SMTP id l22so3251814vbn.28 for ; Sat, 09 Feb 2013 21:58:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:in-reply-to:references:reply-to:organization; bh=MHhQxkcdv5LFnhT8l2AaT0gCJmy58gcPEXJzJZGjH/o=; b=KB0BirUoW64qSIDM4hGrMU9j+D/sdZOpmk8mjR0mS1t38ixlbuU6Mn7KmPzuQWKZl7 5XnI7E6rDVS9FHglFTSi/xilzjc8QSHrxa3yFSbWjB78RDIPTBiv6xV2SDPKg8M+iYT9 SiN0WzDNbYerKwgeGBnIgDPoLc4e68NB+5l3W2v+B8cGyEf0r3jTX+kl2M6jbfYXO6QM fVDT1zXHcql1XIfIx3FUkzVyxzhdCYhdSZCZLrBTPXaQCpKk3AtP5H3ngKe2xOukyO7l rK2X8XVYnGBNbWZlgqUXdvOZx1BBtdKEQnwv6o7AZ5g5ggVQCbNIyWqPO2GdZRuRHp92 Asqg== X-Received: by 10.52.75.8 with SMTP id y8mr11970477vdv.2.1360475918335; Sat, 09 Feb 2013 21:58:38 -0800 (PST) Received: from x980.localdomain6 (pool-108-7-58-246.bstnma.fios.verizon.net. [108.7.58.246]) by mx.google.com with ESMTPS id p7sm42173052vdt.2.2013.02.09.21.58.36 (version=TLSv1 cipher=RC4-SHA bits=128/128); Sat, 09 Feb 2013 21:58:37 -0800 (PST) From: Len Brown To: linux-pm@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Len Brown , linux-arm-kernel@lists.infradead.org Subject: [PATCH 06/16] ARM idle: delete pm_idle Date: Sun, 10 Feb 2013 00:58:13 -0500 Message-Id: <9838a4aeee256adeaef90efe56df2c9988206982.1360475150.git.len.brown@intel.com> X-Mailer: git-send-email 1.8.1.3.535.ga923c31 In-Reply-To: <1360475903-30007-1-git-send-email-lenb@kernel.org> References: <1360475903-30007-1-git-send-email-lenb@kernel.org> In-Reply-To: <2b219d07e0f287c2c713f5465fc8646158fa986e.1360475150.git.len.brown@intel.com> References: <2b219d07e0f287c2c713f5465fc8646158fa986e.1360475150.git.len.brown@intel.com> Reply-To: Len Brown Organization: Intel Open Source Technology Center Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org From: Len Brown pm_idle() on ARM was a synonym for default_idle(), so simply invoke default_idle() directly. Signed-off-by: Len Brown Cc: linux-arm-kernel@lists.infradead.org Reviewed-by: Kevin Hilman Tested-by: Kevin Hilman --- arch/arm/kernel/process.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/arch/arm/kernel/process.c b/arch/arm/kernel/process.c index c6dec5f..047d3e4 100644 --- a/arch/arm/kernel/process.c +++ b/arch/arm/kernel/process.c @@ -172,14 +172,9 @@ static void default_idle(void) local_irq_enable(); } -void (*pm_idle)(void) = default_idle; -EXPORT_SYMBOL(pm_idle); - /* - * The idle thread, has rather strange semantics for calling pm_idle, - * but this is what x86 does and we need to do the same, so that - * things like cpuidle get called in the same way. The only difference - * is that we always respect 'hlt_counter' to prevent low power idle. + * The idle thread. + * We always respect 'hlt_counter' to prevent low power idle. */ void cpu_idle(void) { @@ -210,10 +205,10 @@ void cpu_idle(void) } else if (!need_resched()) { stop_critical_timings(); if (cpuidle_idle_call()) - pm_idle(); + default_idle(); start_critical_timings(); /* - * pm_idle functions must always + * default_idle functions must always * return with IRQs enabled. */ WARN_ON(irqs_disabled());