From patchwork Sun Feb 10 05:58:15 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Len Brown X-Patchwork-Id: 2121551 X-Patchwork-Delegate: lenb@kernel.org Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 6A1EADF23E for ; Sun, 10 Feb 2013 06:01:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752622Ab3BJF6r (ORCPT ); Sun, 10 Feb 2013 00:58:47 -0500 Received: from mail-vb0-f51.google.com ([209.85.212.51]:37733 "EHLO mail-vb0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752448Ab3BJF6m (ORCPT ); Sun, 10 Feb 2013 00:58:42 -0500 Received: by mail-vb0-f51.google.com with SMTP id fq11so3116782vbb.38 for ; Sat, 09 Feb 2013 21:58:41 -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=kJ37AzIHc6FE4DxYejwVYRCB6LzL5553yVfYq5d2s0w=; b=0ehqcjxTz5QdPs5czQdRikATV0xMjiBan1J5+T37WsiHq16l/NjG9xVad4MgdBzuBU PsGYXP48b2YzLfCAlojwdqNLAvhlp4MQp4d93pNiih7Pvkd0cLWVnFbaUIWViFTn4ybD Be/XCMt/hCKJX6upBfDAGgzq3whpTYpV+onuxbIiKSKCeQ0KGjtVztyXDQwXiDiA6wKk 06tuottkHqHZKVFFCNUxa0pBaTitbB8XNlNfKJ5Am6p0tFQ+nLcOpbNm7W935b2TaUXo SI0+nmvSrCz7o69d7J1ci1JYeHod2azB/janng0EiZCCgT8wJrE2z4rVaDf3pUOrvq1N 5zbA== X-Received: by 10.220.151.141 with SMTP id c13mr13790536vcw.64.1360475921367; Sat, 09 Feb 2013 21:58:41 -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.39 (version=TLSv1 cipher=RC4-SHA bits=128/128); Sat, 09 Feb 2013 21:58:40 -0800 (PST) From: Len Brown To: linux-pm@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Len Brown , linux-cris-kernel@axis.com Subject: [PATCH 08/16] cris idle: delete idle and pm_idle Date: Sun, 10 Feb 2013 00:58:15 -0500 Message-Id: <128d290dacc38d1a3d09031018adf017eec0b5f2.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() and idle() served no purpose on cris -- invoke default_idle() directly. Signed-off-by: Len Brown Cc: linux-cris-kernel@axis.com Acked-by: Jesper Nilsson --- arch/cris/kernel/process.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/arch/cris/kernel/process.c b/arch/cris/kernel/process.c index 7f65be6..104ff4d 100644 --- a/arch/cris/kernel/process.c +++ b/arch/cris/kernel/process.c @@ -54,11 +54,6 @@ void enable_hlt(void) EXPORT_SYMBOL(enable_hlt); -/* - * The following aren't currently used. - */ -void (*pm_idle)(void); - extern void default_idle(void); void (*pm_power_off)(void); @@ -77,16 +72,12 @@ void cpu_idle (void) while (1) { rcu_idle_enter(); while (!need_resched()) { - void (*idle)(void); /* * Mark this as an RCU critical section so that * synchronize_kernel() in the unload path waits * for our completion. */ - idle = pm_idle; - if (!idle) - idle = default_idle; - idle(); + default_idle(); } rcu_idle_exit(); schedule_preempt_disabled();