From patchwork Fri Mar 29 10:31:34 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 2365081 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 12D3F3FD40 for ; Fri, 29 Mar 2013 10:36:37 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ULWdY-0004wi-IW; Fri, 29 Mar 2013 10:34:20 +0000 Received: from mail-wi0-x231.google.com ([2a00:1450:400c:c05::231]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ULWbE-00042v-3y for linux-arm-kernel@lists.infradead.org; Fri, 29 Mar 2013 10:31:57 +0000 Received: by mail-wi0-f177.google.com with SMTP id hm14so306840wib.10 for ; Fri, 29 Mar 2013 03:31:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-gm-message-state; bh=/du7E0y76p9hf0wMjc1GVr9AGen7Vk5F5v3VaoDz5Cg=; b=k0iuPNg/xbcyInyCEOiA9eaQ2uQyPBdW8Bo2o1p+fz5xjhu+tz6/PAQESfRBqmutwy B/+4eixhgpdo3omtWMgilNl9w88yegOj1NzEYPNdD1BCLtIZiYfsaKVypJuLUsusVK+S QSX622BH3XuoZ9pWOBg1qBL1qiXNgMZXauF1EK3EtGPL2kYef0OHN9sJi4FQUxH/9qLM ZwLfaAuHaA6sDT4C509sjqEpY90hJPlwAsQBcvP4pvj/hbwMwCll7CFhMQKYMF6TAZ4X Q+O1xRnD9FIHws1kkx4+0DyYVjS6mMB1oOXVW2z0RO51taG7fhXZVi8teAFPE66Kcorv wXHA== X-Received: by 10.194.220.70 with SMTP id pu6mr2767416wjc.27.1364553113583; Fri, 29 Mar 2013 03:31:53 -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 q13sm2472076wie.0.2013.03.29.03.31.51 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 29 Mar 2013 03:31:52 -0700 (PDT) From: Daniel Lezcano To: rjw@sisk.pl Subject: [PATCH 8/9] intel: cpuidle: remove stop/start critical timings Date: Fri, 29 Mar 2013 11:31:34 +0100 Message-Id: <1364553095-25110-8-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1364553095-25110-1-git-send-email-daniel.lezcano@linaro.org> References: <1364553095-25110-1-git-send-email-daniel.lezcano@linaro.org> X-Gm-Message-State: ALoCoQlkQgzfr/Mq0ay36cKe2nvkktwOECJq+KozMMg0djw75c07EtKslZMOWr9MZmJQVj7p75Hl X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130329_063156_304152_915C5684 X-CRM114-Status: UNSURE ( 8.20 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: linaro-kernel@lists.linaro.org, linux@arm.linux.org.uk, arnd@arndb.de, swarren@wwwdotorg.org, patches@linaro.org, linux-pm@vger.kernel.org, rnayak@ti.com, nsekhar@ti.com, santosh.shilimkar@ti.com, linux-tegra@vger.kernel.org, horms+renesas@verge.net.au, linux-arm-kernel@lists.infradead.org, lenb@kernel.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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 --- 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);