From patchwork Wed Apr 3 12:15:20 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 15860 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 248F123E21 for ; Wed, 3 Apr 2013 12:15:47 +0000 (UTC) Received: from mail-vb0-f70.google.com (mail-vb0-f70.google.com [209.85.212.70]) by fiordland.canonical.com (Postfix) with ESMTP id BA1A1A18698 for ; Wed, 3 Apr 2013 12:15:46 +0000 (UTC) Received: by mail-vb0-f70.google.com with SMTP id 11sf788048vbf.5 for ; Wed, 03 Apr 2013 05:15:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-beenthere:x-received:received-spf :x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=/du7E0y76p9hf0wMjc1GVr9AGen7Vk5F5v3VaoDz5Cg=; b=ayoUFUahYaLpFqTUddMn/Sw2Et74z8JY9yWZLZaKZcyJAdzzMgfky+/gRsxg5xsL7X E7eXAPbFSEVNnO/Z1ejMkmOrzYgdQVOoEwtOXrsxtn3wUweFntoIq3CZHNQQ0pYoBXNL Vcvm4V/b7kZZAuekSYeXwhVm2c86cleffL8z4WHTO9pcL0t+H+pxv/73wJYffikI7spg gZ8nX/EOwsjzo6rqBi7fftVkzHCwpuVDVOinwDFvHxRAn8wTCoE1KfBp7DQ4Z1qCv/+H DoJwuZFro8SBhKsFfYPMx3F124KhXnur1JoxNEM8Wee/khixJrmQETk7Cp0PUauWJZUY falA== X-Received: by 10.224.172.200 with SMTP id m8mr1008260qaz.0.1364991346239; Wed, 03 Apr 2013 05:15:46 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.1.129 with SMTP id 1ls904710qem.91.gmail; Wed, 03 Apr 2013 05:15:46 -0700 (PDT) X-Received: by 10.58.48.166 with SMTP id m6mr911822ven.59.1364991346130; Wed, 03 Apr 2013 05:15:46 -0700 (PDT) Received: from mail-vc0-f177.google.com (mail-vc0-f177.google.com [209.85.220.177]) by mx.google.com with ESMTPS id do1si4673875vdb.30.2013.04.03.05.15.46 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 03 Apr 2013 05:15:46 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.177 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.177; Received: by mail-vc0-f177.google.com with SMTP id ia10so1410818vcb.36 for ; Wed, 03 Apr 2013 05:15:46 -0700 (PDT) X-Received: by 10.58.224.101 with SMTP id rb5mr999442vec.17.1364991346045; Wed, 03 Apr 2013 05:15:46 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.59.4.204 with SMTP id cg12csp167617ved; Wed, 3 Apr 2013 05:15:45 -0700 (PDT) X-Received: by 10.180.39.207 with SMTP id r15mr486353wik.16.1364991345022; Wed, 03 Apr 2013 05:15:45 -0700 (PDT) Received: from mail-we0-x231.google.com (mail-we0-x231.google.com [2a00:1450:400c:c03::231]) by mx.google.com with ESMTPS id em2si2362935wib.121.2013.04.03.05.15.44 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 03 Apr 2013 05:15:45 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:400c:c03::231 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) client-ip=2a00:1450:400c:c03::231; Received: by mail-we0-f177.google.com with SMTP id o45so1120803wer.22 for ; Wed, 03 Apr 2013 05:15:44 -0700 (PDT) X-Received: by 10.180.37.166 with SMTP id z6mr22402239wij.34.1364991344630; Wed, 03 Apr 2013 05:15:44 -0700 (PDT) Received: from mai.home (AToulouse-654-1-486-7.w92-146.abo.wanadoo.fr. [92.146.77.7]) by mx.google.com with ESMTPS id bq19sm8729530wib.7.2013.04.03.05.15.41 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 03 Apr 2013 05:15:42 -0700 (PDT) From: Daniel Lezcano To: rjw@sisk.pl Cc: linux-pm@vger.kernel.org, patches@linaro.org, linaro-kernel@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux@arm.linux.org.uk, rnayak@ti.com, swarren@wwwdotorg.org, linux-tegra@vger.kernel.org, horms+renesas@verge.net.au, santosh.shilimkar@ti.com, arnd@arndb.de, lenb@kernel.org, nsekhar@ti.com, josephl@nvidia.com, deepthi@linux.vnet.ibm.com Subject: [PATCH 7/9] intel: cpuidle: remove stop/start critical timings Date: Wed, 3 Apr 2013 14:15:20 +0200 Message-Id: <1364991322-20585-7-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1364991322-20585-1-git-send-email-daniel.lezcano@linaro.org> References: <1364991322-20585-1-git-send-email-daniel.lezcano@linaro.org> X-Gm-Message-State: ALoCoQky/nec7BbtkQO741+ZOA5dAt9kvJ1tQEU05bXfRGvnHPNufgFMd6YBOhXD8JlbnsCcuXfS X-Original-Sender: daniel.lezcano@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.177 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 Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The start/stop_critical_timings are called from arch/x86/kernel/process.c in the cpu_idle loop function. Remove the ones in the cpuidle driver. Signed-off-by: Daniel Lezcano Acked-by: Len Brown --- drivers/idle/intel_idle.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/idle/intel_idle.c b/drivers/idle/intel_idle.c index 5d66750..c99c31e 100644 --- a/drivers/idle/intel_idle.c +++ b/drivers/idle/intel_idle.c @@ -339,7 +339,6 @@ static int intel_idle(struct cpuidle_device *dev, if (!(lapic_timer_reliable_states & (1 << (cstate)))) clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_ENTER, &cpu); - stop_critical_timings(); if (!need_resched()) { __monitor((void *)¤t_thread_info()->flags, 0, 0); @@ -348,8 +347,6 @@ static int intel_idle(struct cpuidle_device *dev, __mwait(eax, ecx); } - start_critical_timings(); - if (!(lapic_timer_reliable_states & (1 << (cstate)))) clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_EXIT, &cpu);