]> rtime.felk.cvut.cz Git - frescor/frsh-include.git/blobdiff - frsh_energy_management.h
Update transaction API
[frescor/frsh-include.git] / frsh_energy_management.h
index 9f2e8100724a1df4e2227a863ec56d99f2c1a7b6..d1e5beb63403758afbf6cef3b29e75f2ec6c215c 100644 (file)
@@ -1,5 +1,5 @@
 // -----------------------------------------------------------------------
-//  Copyright (C) 2006 - 2008 FRESCOR consortium partners:
+//  Copyright (C) 2006 - 2009 FRESCOR consortium partners:
 //
 //    Universidad de Cantabria,              SPAIN
 //    University of York,                    UK
@@ -259,6 +259,21 @@ int frsh_resource_get_power_level(frsh_resource_type_t resource_type,
                                  frsh_resource_id_t resource_id,
                                   frsh_power_level_t *power_level);
 
+/**
+ * frsh_resource_get_speed()
+ *
+ * Get in speed_ratio representative value for the speed of the specified
+ * resource, with respect to the maximum possible speed for such resource.
+ *
+ * @note
+ * Only implementation for resource_type = FRSH_RT_PROCESSOR is mandatory,
+ * if the energy management module is present.
+ **/
+int frsh_resource_get_speed(frsh_resource_type_t resource_type,
+                           frsh_resource_id_t resource_id,
+                           frsh_power_level_t power_level,
+                           double *speed_ratio);
+
 /**
  * frsh_resource_get_num_power_levels()
  *