From patchwork Mon Feb 17 16:09:45 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Pitre X-Patchwork-Id: 3663831 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id A402C9F39B for ; Mon, 17 Feb 2014 16:09:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E8481201F5 for ; Mon, 17 Feb 2014 16:09:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 76C13201FD for ; Mon, 17 Feb 2014 16:09:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752571AbaBQQJy (ORCPT ); Mon, 17 Feb 2014 11:09:54 -0500 Received: from relais.videotron.ca ([24.201.245.36]:64603 "EHLO relais.videotron.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750939AbaBQQJy (ORCPT ); Mon, 17 Feb 2014 11:09:54 -0500 MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: TEXT/PLAIN; CHARSET=US-ASCII Received: from xanadu.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 <0N1500CYVE89B0B0@VL-VM-MR006.ip.videotron.ca> for linux-pm@vger.kernel.org; Mon, 17 Feb 2014 11:09:46 -0500 (EST) Date: Mon, 17 Feb 2014 11:09:45 -0500 (EST) From: Nicolas Pitre To: Paul Burton Cc: "Rafael J. Wysocki" , Daniel Lezcano , linux-pm@vger.kernel.org, linux-mips@linux-mips.org Subject: [PATCH] cpuidle/mips: remove redundant cpuidle_idle_call() Message-id: User-Agent: Alpine 2.11 (LFD 23 2013-08-11) Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The core idle loop now takes care of it. Signed-off-by: Nicolas Pitre --- I noticed commit c0b5d598aefda in linux-next adds a call to cpuidle_idle_call(). At the same time we're rationalizing the idle handling code in order to integrate it with the scheduler proper. Please note that a similar patch to the one below will be necessary once everything gets merged together. -- To unsubscribe from this list: send the line "unsubscribe linux-pm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/mips/kernel/idle.c b/arch/mips/kernel/idle.c index 4b1554b3f5..2d753de5dc 100644 --- a/arch/mips/kernel/idle.c +++ b/arch/mips/kernel/idle.c @@ -253,8 +253,7 @@ static void mips_cpu_idle(void) void arch_cpu_idle(void) { - if (cpuidle_idle_call()) - mips_cpu_idle(); + mips_cpu_idle(); } #ifdef CONFIG_CPU_IDLE