lkml.org 
[lkml]   [2005]   [Mar]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [PATCH] Custom power states for non-ACPI systems
An example of custom power states for the TI OMAP family.
/sys/power/states supports a state named "deepsleep", which corresponds
to the platform state actually entered by the present-day system suspend
handler. It no longer offers the option of "disk" suspend which would
not normally be available in an OMAP-based system, nor does it offer the
choices "standby" or "mem", which are currently somewhat arbitrarily
mapped to actual platform power states on OMAPs. In the future the OMAP
could be extended to offer the choice of "big sleep" as well, another
platform-specific low-power mode that falls under the general category
of suspend-to-mem, once it is feasible to no longer use the same set of
system suspend state values for all platforms and drivers (as mentioned
in the base note).

Index: linux-2.6.10/arch/arm/mach-omap/pm.c
===================================================================
--- linux-2.6.10.orig/arch/arm/mach-omap/pm.c 2005-03-02 01:10:27.000000000 +0000
+++ linux-2.6.10/arch/arm/mach-omap/pm.c 2005-03-02 01:13:41.000000000 +0000
@@ -576,8 +576,20 @@
}


+static struct pm_suspend_method omap_pm_suspend_methods[] = {
+ {
+ .name = "deepsleep",
+ .state = PM_SUSPEND_MEM,
+ },
+ {
+ .name = NULL,
+ },
+};
+
+
struct pm_ops omap_pm_ops ={
.pm_disk_mode = 0,
+ .pm_suspend_methods = omap_pm_suspend_methods,
.prepare = omap_pm_prepare,
.enter = omap_pm_enter,
.finish = omap_pm_finish,
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 14:10    [W:0.160 / U:0.120 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site