Skip to contentSkip to conversation

OMAP1 PM Core, Platform Power Parameter 1/2

RFC In review Eugeny S. Mints 2 participants 2 messages Sep 29, 2006 – Sep 30, 2006 Power management core

lore
Share & tools
lore
#0 lore raw

RFC 1/1 OMAP1 PM Core, Platform Power Parameter 1/2

Basic building block for PM Core layer is platform power parameter concept. A platform power parameter is a name, get and set methods.

Although an PM Core implementation is completely arch specific any PM Core is supposed to utilize platform power parameter concept.

Also any PM Core is supposed to export names of all platform power parameters available on a platform. Any entity which registeres operating points is primary consumer of platform_pwr_param_get_names() interface.

(Probably this interface routine might be moved to be a part of PowerOP Core interface)

include/linux/plat_pwr_param.h new file +27 -0
new file mode 100644
index 0000000..3a78d2b
@@ -0,0 +1,27 @@
+/*
+ * Interface to the list of platfrom power parameter names available on a
+ * platform
+ *
+ * Author: Eugeny S. Mints <[email protected]>
+ *
+ * 2006 (c) Nomad Global Solutions, Inc. This file is licensed under
+ * the terms of the GNU General Public License version 2. This program
+ * is licensed "as is" without any warranty of any kind, whether express
+ * or implied.
+ *
+ * This is used by an operating point registration entity/module 
+ */
+
+#ifndef __PLAT_PWR_PARAM_H__
+#define __PLAT_PWR_PARAM_H__
+
+/* 
+ * FIXME: for struct attribute; may be we need get rid of sysfs header 
+ * dependency
+ */
+#include <linux/sysfs.h>
+
+int
+platform_pwr_param_get_names(struct attribute ***platform_pwr_params_names);
+
+#endif /*__PLAT_PWR_PARAM_H__*/
include/linux/pm_core.h new file +46 -0

46 lines not on this page · raw message

#1 lore raw

Hi!

include/linux/plat_pwr_param.h

Quoted 17 lines

Basic building block for PM Core layer is platform power parameter concept. A platform power parameter is a name, get and set methods.

Although an PM Core implementation is completely arch specific any PM Core is supposed to utilize platform power parameter concept.

Also any PM Core is supposed to export names of all platform power parameters available on a platform. Any entity which registeres operating points is primary consumer of platform_pwr_param_get_names() interface.

(Probably this interface routine might be moved to be a part of PowerOP Core interface)

include/linux/plat_pwr_param.h new file +0 -0
new file mode 100644
index 0000000..3a78d2b

This is generic code (and please select some more reasonable filename). It should not be in patch marked "OMAP1".

Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html