From patchwork Wed Jan 12 08:02:32 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Len Brown X-Patchwork-Id: 473211 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p0C8XI2r022364 for ; Wed, 12 Jan 2011 08:33:46 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755792Ab1ALICi (ORCPT ); Wed, 12 Jan 2011 03:02:38 -0500 Received: from vms173019pub.verizon.net ([206.46.173.19]:48416 "EHLO vms173019pub.verizon.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754898Ab1ALICi (ORCPT ); Wed, 12 Jan 2011 03:02:38 -0500 Received: from localhost.localdomain ([unknown] [108.7.58.61]) by vms173019.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LEW00K4UH0CGCE1@vms173019.mailsrvcs.net>; Wed, 12 Jan 2011 02:02:37 -0600 (CST) Received: from localhost.localdomain (x980 [127.0.0.1]) by localhost.localdomain (8.14.4/8.14.4) with ESMTP id p0C82YWu018666; Wed, 12 Jan 2011 03:02:34 -0500 Received: from localhost (lenb@localhost) by localhost.localdomain (8.14.4/8.14.4/Submit) with ESMTP id p0C82Wie018662; Wed, 12 Jan 2011 03:02:32 -0500 X-Authentication-warning: localhost.localdomain: lenb owned process doing -bs Date: Wed, 12 Jan 2011 03:02:32 -0500 (EST) From: Len Brown X-X-Sender: lenb@x980 To: Thomas Renninger Cc: linux-perf-users@vger.kernel.org, Ingo Molnar , arjan@linux.intel.com, j-pihet@ti.com, linux-acpi@vger.kernel.org, linux-pm@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: [PATCH] cpuidle: CPUIDLE_FLAG_TLB_FLUSHED is specific to intel_idle In-reply-to: Message-id: References: <1294396190-23031-1-git-send-email-trenn@suse.de> <1294396190-23031-6-git-send-email-trenn@suse.de> User-Agent: Alpine 2.02 (LFD 1266 2009-07-14) MIME-version: 1.0 Content-type: TEXT/PLAIN; charset=US-ASCII Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Wed, 12 Jan 2011 08:33:46 +0000 (UTC) diff --git a/drivers/idle/intel_idle.c b/drivers/idle/intel_idle.c index 21d3871..8256309 100644 --- a/drivers/idle/intel_idle.c +++ b/drivers/idle/intel_idle.c @@ -82,6 +82,14 @@ static int intel_idle(struct cpuidle_device *dev, struct cpuidle_state *state); static struct cpuidle_state *cpuidle_state_table; /* + * Set this flag for states where the HW flushes the TLB for us + * and so we don't need cross-calls to keep it consistent. + * If this flag is set, SW flushes the TLB, so even if the + * HW doesn't do the flushing, this flag is safe to use. + */ +#define CPUIDLE_FLAG_TLB_FLUSHED 0x10000 + +/* * States are indexed by the cstate number, * which is also the index into the MWAIT hint array. * Thus C0 is a dummy. diff --git a/include/linux/cpuidle.h b/include/linux/cpuidle.h index c252953..6be722c 100644 --- a/include/linux/cpuidle.h +++ b/include/linux/cpuidle.h @@ -49,7 +49,6 @@ struct cpuidle_state { #define CPUIDLE_FLAG_TIME_VALID (0x01) /* is residency time measurable? */ #define CPUIDLE_FLAG_CHECK_BM (0x02) /* BM activity will exit state */ #define CPUIDLE_FLAG_IGNORE (0x100) /* ignore during this idle period */ -#define CPUIDLE_FLAG_TLB_FLUSHED (0x200) /* tlb will be flushed */ #define CPUIDLE_DRIVER_FLAGS_MASK (0xFFFF0000)