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: 15766 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 C7F9823DEE for ; Fri, 29 Mar 2013 10:31:55 +0000 (UTC) Received: from mail-vc0-f178.google.com (mail-vc0-f178.google.com [209.85.220.178]) by fiordland.canonical.com (Postfix) with ESMTP id 81474A18D04 for ; Fri, 29 Mar 2013 10:31:55 +0000 (UTC) Received: by mail-vc0-f178.google.com with SMTP id hz11so380414vcb.9 for ; Fri, 29 Mar 2013 03:31:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=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; bh=/du7E0y76p9hf0wMjc1GVr9AGen7Vk5F5v3VaoDz5Cg=; b=Wh79doC07mLmsSixMDZsi8s83aHw38jiJ4sJK6g/h7Qa26rgE26kDGPd5BkMJLft+i yL7vkLYTEPiY5k7xVa2phOYpm86ric+5/keR9gob2T6fllPVHTkmrsaAAbmX5QW9dBl6 7V63p/QwCY4Ci1YwEFHcIFPj+i/A0o/wUQ4dUj09vhpQO0j+8E6vj0UvzKRXg39PRbFi xNCAD3SGMvhsI4+I3EO384Qt5N3/uIkFsePHpsPcZmkTa7yDRaedupOL3gYihIWbXyj+ 7l6OzDGhal+FUfIwCWJYCrPwc2J1lmtYj03LLg48hub/FsSFndh0Ya0c7S0JxVkaK6ot w6WQ== X-Received: by 10.220.154.199 with SMTP id p7mr1375147vcw.46.1364553115045; Fri, 29 Mar 2013 03:31:55 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.59.4.204 with SMTP id cg12csp54151ved; Fri, 29 Mar 2013 03:31:54 -0700 (PDT) X-Received: by 10.180.103.40 with SMTP id ft8mr21613689wib.28.1364553114055; Fri, 29 Mar 2013 03:31:54 -0700 (PDT) Received: from mail-wi0-x234.google.com ([2a00:1450:400c:c05::234]) by mx.google.com with ESMTPS id db1si875010wib.124.2013.03.29.03.31.53 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 29 Mar 2013 03:31:54 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:400c:c05::234 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) client-ip=2a00:1450:400c:c05::234; Authentication-Results: mx.google.com; spf=neutral (google.com: 2a00:1450:400c:c05::234 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) smtp.mail=daniel.lezcano@linaro.org Received: by mail-wi0-f180.google.com with SMTP id c10so306217wiw.13 for ; Fri, 29 Mar 2013 03:31:53 -0700 (PDT) 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 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 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: ALoCoQnUVLwWNhzXpirOPkNg0GM3regljocKs58CHB9PtIxD57dMk4fEE/O7FpEoN9B2j6BEoV3/ 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);