From patchwork Thu Feb 21 10:15:31 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lars-Peter Clausen X-Patchwork-Id: 2171121 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 588D13FD4E for ; Thu, 21 Feb 2013 10:14:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751793Ab3BUKOI (ORCPT ); Thu, 21 Feb 2013 05:14:08 -0500 Received: from smtp-out-108.synserver.de ([212.40.185.108]:1171 "EHLO smtp-out-106.synserver.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751604Ab3BUKOH (ORCPT ); Thu, 21 Feb 2013 05:14:07 -0500 Received: (qmail 12160 invoked by uid 0); 21 Feb 2013 10:14:00 -0000 X-SynServer-TrustedSrc: 1 X-SynServer-AuthUser: lars@metafoo.de X-SynServer-PPID: 11889 Received: from p4fe63abc.dip.t-dialin.net (HELO lars-adi-laptop.analog.com) [79.230.58.188] by 217.119.54.81 with SMTP; 21 Feb 2013 10:14:00 -0000 From: Lars-Peter Clausen To: "Rafael J. Wysocki" Cc: Len Brown , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, microblaze-uclinux@itee.uq.edu.au, Lars-Peter Clausen Subject: [PATCH] microblaze idle: Fix compile error Date: Thu, 21 Feb 2013 11:15:31 +0100 Message-Id: <1361441731-19900-1-git-send-email-lars@metafoo.de> X-Mailer: git-send-email 1.8.0 In-Reply-To: References: Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Commit def8203 ("microblaze idle: delete pm_idle") introduced the following compile error: arch/microblaze/kernel/process.c: In function 'cpu_idle': arch/microblaze/kernel/process.c:100: error: 'idle' undeclared (first use in this function) arch/microblaze/kernel/process.c:100: error: (Each undeclared identifier is reported only once arch/microblaze/kernel/process.c:100: error: for each function it appears in.) arch/microblaze/kernel/process.c:106: error: implicit declaration of function 'idle' This patch fixes it. Signed-off-by: Lars-Peter Clausen --- arch/microblaze/kernel/process.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/arch/microblaze/kernel/process.c b/arch/microblaze/kernel/process.c index 6ff2dcf..08f8734 100644 --- a/arch/microblaze/kernel/process.c +++ b/arch/microblaze/kernel/process.c @@ -97,13 +97,10 @@ void cpu_idle(void) /* endless idle loop with no priority at all */ while (1) { - if (!idle) - idle = default_idle; - tick_nohz_idle_enter(); rcu_idle_enter(); while (!need_resched()) - idle(); + default_idle(); rcu_idle_exit(); tick_nohz_idle_exit();