From mboxrd@z Thu Jan 1 00:00:00 1970 From: jean.pihet@newoldbits.com Subject: [PATCH 5/8] OMAP: PM CONSTRAINTS: add an enum for the classes of constraint Date: Wed, 30 Mar 2011 17:19:21 +0200 Message-ID: <1301498364-726-6-git-send-email-j-pihet@ti.com> References: <1301498364-726-1-git-send-email-j-pihet@ti.com> Return-path: Received: from mail-wy0-f174.google.com ([74.125.82.174]:60961 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754838Ab1C3PTk (ORCPT ); Wed, 30 Mar 2011 11:19:40 -0400 Received: by mail-wy0-f174.google.com with SMTP id 21so1176208wya.19 for ; Wed, 30 Mar 2011 08:19:39 -0700 (PDT) In-Reply-To: <1301498364-726-1-git-send-email-j-pihet@ti.com> Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Kevin Hilman , paul@pwsan.com Cc: Jean Pihet From: Jean Pihet Defined values in the enum: - OMAP_PM_CONSTRAINT_WKUP_LAT - OMAP_PM_CONSTRAINT_THROUGHPUT More classes can be added later if needed. Tested on OMAP3 Beagleboard in RET/OFF using wake-up latency constraints on MPU, CORE and PER. Signed-off-by: Jean Pihet --- arch/arm/plat-omap/include/plat/omap-pm.h | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/arch/arm/plat-omap/include/plat/omap-pm.h b/arch/arm/plat-omap/include/plat/omap-pm.h index c0a7520..5f19cb2 100644 --- a/arch/arm/plat-omap/include/plat/omap-pm.h +++ b/arch/arm/plat-omap/include/plat/omap-pm.h @@ -70,6 +70,10 @@ void omap_pm_if_exit(void); * Device-driver-originated constraints (via board-*.c files, platform_data) */ +enum omap_pm_constraint_class { + OMAP_PM_CONSTRAINT_WKUP_LAT, + OMAP_PM_CONSTRAINT_THROUGHPUT +}; /** * omap_pm_set_max_mpu_wakeup_lat - set the maximum MPU wakeup latency -- 1.7.2.5