From patchwork Mon Jan 27 06:08:23 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Pitre X-Patchwork-Id: 23733 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yk0-f199.google.com (mail-yk0-f199.google.com [209.85.160.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6A617203C4 for ; Mon, 27 Jan 2014 06:24:58 +0000 (UTC) Received: by mail-yk0-f199.google.com with SMTP id 142sf27047633ykq.2 for ; Sun, 26 Jan 2014 22:24:57 -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=PqdA/vS3Cd3VM/wtfkiNGGsuHZENC0A9zoce2dffBoY=; b=UfSxrac/2YEWPkUh1Rgq1BM3JLY8ys9aA2iTZS3IRaWWrQu1U0toyzqbvy+ybLOkdr 3t4tMaKN90+285MJrAm6hvqs7iA7VgDspmjNQQwzUrpxG1sxkIBy5BRgjPd1h7mIHzky AjWWpiYBezO5fI6VhxON8oJ12VHRayPIgWwjZQemyz1hu4jS0JKXdwPSBa/g3GY5Pswz WNKLVu1JaTDVrh5PFtlmw2E+DxRfgxUc8uvQMFWEzt1nJLJ7+y3vbeZdsHrsjWviOuvW ilTePkGghozKFFpmdmMlprjVxyXdI+cQFHWMxcjReEPMF0A2oq4kCieQRfvnzEJ4NgZG qTbA== X-Gm-Message-State: ALoCoQmoYLJ50kLzoicsPjXudV+pWJ9DmjtsNtNbh5GJ7ovfzOuYVgqoW4Ba8ZGYjSVeV8+O5VyD X-Received: by 10.58.91.75 with SMTP id cc11mr1560716veb.36.1390803897301; Sun, 26 Jan 2014 22:24:57 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.23.80 with SMTP id 74ls1516223qgo.61.gmail; Sun, 26 Jan 2014 22:24:57 -0800 (PST) X-Received: by 10.52.187.104 with SMTP id fr8mr5698vdc.48.1390803897140; Sun, 26 Jan 2014 22:24:57 -0800 (PST) Received: from mail-vb0-f50.google.com (mail-vb0-f50.google.com [209.85.212.50]) by mx.google.com with ESMTPS id tt2si1219295vdc.113.2014.01.26.22.24.57 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 26 Jan 2014 22:24:57 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.50 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.50; Received: by mail-vb0-f50.google.com with SMTP id w8so3083323vbj.23 for ; Sun, 26 Jan 2014 22:24:57 -0800 (PST) X-Received: by 10.221.34.211 with SMTP id st19mr14717972vcb.5.1390803897059; Sun, 26 Jan 2014 22:24:57 -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 u4csp107297vcz; Sun, 26 Jan 2014 22:24:56 -0800 (PST) X-Received: by 10.66.159.233 with SMTP id xf9mr1364521pab.139.1390803896181; Sun, 26 Jan 2014 22:24:56 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id eb3si10069985pbd.107.2014.01.26.22.24.55; Sun, 26 Jan 2014 22:24:55 -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 S1753493AbaA0GYT (ORCPT + 27 others); Mon, 27 Jan 2014 01:24:19 -0500 Received: from relais.videotron.ca ([24.201.245.36]:51663 "EHLO relais.videotron.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753310AbaA0GYR (ORCPT ); Mon, 27 Jan 2014 01:24:17 -0500 X-Greylist: delayed 901 seconds by postgrey-1.27 at vger.kernel.org; Mon, 27 Jan 2014 01:24:12 EST 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 <0N0100CK1QFBKVJ0@VL-VM-MR006.ip.videotron.ca>; Mon, 27 Jan 2014 01:09:12 -0500 (EST) Received: from xanadu.home (xanadu.home [192.168.2.2]) by yoda.home (Postfix) with ESMTP id AEE832DA069E; Mon, 27 Jan 2014 01:09:11 -0500 (EST) From: Nicolas Pitre To: Russell King , Catalin Marinas , Benjamin Herrenschmidt , 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 8/9] X86: remove redundant cpuidle_idle_call() Date: Mon, 27 Jan 2014 01:08:23 -0500 Message-id: <1390802904-28399-9-git-send-email-nicolas.pitre@linaro.org> X-Mailer: git-send-email 1.8.4.108.g55ea5f6 In-reply-to: <1390802904-28399-1-git-send-email-nicolas.pitre@linaro.org> References: <1390802904-28399-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.50 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/x86/kernel/process.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/arch/x86/kernel/process.c b/arch/x86/kernel/process.c index 3fb8d95ab8..4505e2a950 100644 --- a/arch/x86/kernel/process.c +++ b/arch/x86/kernel/process.c @@ -298,10 +298,7 @@ void arch_cpu_idle_dead(void) */ void arch_cpu_idle(void) { - if (cpuidle_idle_call()) - x86_idle(); - else - local_irq_enable(); + x86_idle(); } /*