ARM: OMAP4: CPUidle: Make C-state description field more precise
authorSantosh Shilimkar <santosh.shilimkar@ti.com>
Mon, 25 Mar 2013 10:05:06 +0000 (15:35 +0530)
committerKevin Hilman <khilman@linaro.org>
Tue, 9 Apr 2013 16:45:46 +0000 (09:45 -0700)
It is useful to know the CPU power state along with MPUSS power state
in a supported C-state. Since the data is available via sysfs, one can
avoid scrolling the source code for precise construction of C-state.

Reported-by: Nishanth Menon <nm@ti.com>
Acked-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Kevin Hilman <khilman@linaro.org>
arch/arm/mach-omap2/cpuidle44xx.c

index aeeb8e6..e48e26e 100644 (file)
@@ -171,7 +171,7 @@ static struct cpuidle_driver omap4_idle_driver = {
                        .flags = CPUIDLE_FLAG_TIME_VALID,
                        .enter = omap4_enter_idle_simple,
                        .name = "C1",
-                       .desc = "MPUSS ON"
+                       .desc = "CPUx ON, MPUSS ON"
                },
                {
                        /* C2 - CPU0 OFF + CPU1 OFF + MPU CSWR */
@@ -181,7 +181,7 @@ static struct cpuidle_driver omap4_idle_driver = {
                                 CPUIDLE_FLAG_TIMER_STOP,
                        .enter = omap4_enter_idle_coupled,
                        .name = "C2",
-                       .desc = "MPUSS CSWR",
+                       .desc = "CPUx OFF, MPUSS CSWR",
                },
                {
                        /* C3 - CPU0 OFF + CPU1 OFF + MPU OSWR */
@@ -191,7 +191,7 @@ static struct cpuidle_driver omap4_idle_driver = {
                                 CPUIDLE_FLAG_TIMER_STOP,
                        .enter = omap4_enter_idle_coupled,
                        .name = "C3",
-                       .desc = "MPUSS OSWR",
+                       .desc = "CPUx OFF, MPUSS OSWR",
                },
        },
        .state_count = ARRAY_SIZE(omap4_idle_data),