From patchwork Tue Feb 16 07:16:04 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eduardo Valentin X-Patchwork-Id: 79534 X-Patchwork-Delegate: khilman@deeprootsystems.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o1G7GsdN010954 for ; Tue, 16 Feb 2010 07:16:55 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754102Ab0BPHQs (ORCPT ); Tue, 16 Feb 2010 02:16:48 -0500 Received: from smtp.nokia.com ([192.100.122.230]:29140 "EHLO mgw-mx03.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753805Ab0BPHQr (ORCPT ); Tue, 16 Feb 2010 02:16:47 -0500 Received: from vaebh105.NOE.Nokia.com (vaebh105.europe.nokia.com [10.160.244.31]) by mgw-mx03.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id o1G7GSrB020969; Tue, 16 Feb 2010 09:16:44 +0200 Received: from vaebh104.NOE.Nokia.com ([10.160.244.30]) by vaebh105.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 16 Feb 2010 09:16:35 +0200 Received: from mgw-da01.ext.nokia.com ([147.243.128.24]) by vaebh104.NOE.Nokia.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Tue, 16 Feb 2010 09:16:29 +0200 Received: from localhost.localdomain (esdhcp04055.research.nokia.com [172.21.40.55]) by mgw-da01.ext.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id o1G7GOSf026519; Tue, 16 Feb 2010 09:16:25 +0200 From: Eduardo Valentin To: ext Kevin Hilman Cc: "\\\"Kristo Tero (Nokia-D/Tampere)\\\"" , Linux-OMAP , Eduardo Valentin Subject: [RFC] [PATCH 1/1] OMAP3: PM: Add cpuidle C-state description information Date: Tue, 16 Feb 2010 09:16:04 +0200 Message-Id: <1266304564-22778-1-git-send-email-eduardo.valentin@nokia.com> X-Mailer: git-send-email 1.6.5.7.g9ecb2 X-OriginalArrivalTime: 16 Feb 2010 07:16:30.0405 (UTC) FILETIME=[F6212750:01CAAED7] X-Nokia-AV: Clean 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.3 (demeter.kernel.org [140.211.167.41]); Tue, 16 Feb 2010 07:16:55 +0000 (UTC) diff --git a/arch/arm/mach-omap2/cpuidle34xx.c b/arch/arm/mach-omap2/cpuidle34xx.c index 1cfa5a6..50fe9ab 100644 --- a/arch/arm/mach-omap2/cpuidle34xx.c +++ b/arch/arm/mach-omap2/cpuidle34xx.c @@ -339,6 +339,7 @@ struct cpuidle_driver omap3_idle_driver = { */ int __init omap3_idle_init(void) { + const char *pd_states[4] = {"OFF", "RET", "INA", "ON "}; int i, count = 0; struct omap3_processor_cx *cx; struct cpuidle_state *state; @@ -367,6 +368,9 @@ int __init omap3_idle_init(void) if (cx->type == OMAP3_STATE_C1) dev->safe_state = state; sprintf(state->name, "C%d", count+1); + sprintf(state->desc, "MPU=%s NEON=%s CORE=%s", + pd_states[cx->mpu_state], pd_states[cx->mpu_state], + pd_states[cx->core_state]); count++; }