From patchwork Wed May 4 13:35:14 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean Pihet X-Patchwork-Id: 753722 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 p44DZhfD019788 for ; Wed, 4 May 2011 13:35:44 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753560Ab1EDNfm (ORCPT ); Wed, 4 May 2011 09:35:42 -0400 Received: from mail-ww0-f42.google.com ([74.125.82.42]:60243 "EHLO mail-ww0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753387Ab1EDNfm (ORCPT ); Wed, 4 May 2011 09:35:42 -0400 Received: by wwk4 with SMTP id 4so4298473wwk.1 for ; Wed, 04 May 2011 06:35:40 -0700 (PDT) Received: by 10.216.245.11 with SMTP id n11mr4844133wer.108.1304516140773; Wed, 04 May 2011 06:35:40 -0700 (PDT) Received: from localhost.localdomain (58.79-245-81.adsl-dyn.isp.belgacom.be [81.245.79.58]) by mx.google.com with ESMTPS id r80sm569436wei.39.2011.05.04.06.35.39 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 04 May 2011 06:35:40 -0700 (PDT) From: jean.pihet@newoldbits.com To: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Kevin Hilman , paul@pwsan.com Cc: Jean Pihet Subject: [PATCH 5/8] OMAP: PM CONSTRAINTS: add an enum for the classes of constraint Date: Wed, 4 May 2011 15:35:14 +0200 Message-Id: <1304516117-9334-6-git-send-email-j-pihet@ti.com> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1304516117-9334-1-git-send-email-j-pihet@ti.com> References: <1304516117-9334-1-git-send-email-j-pihet@ti.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@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, 04 May 2011 13:35:44 +0000 (UTC) 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