]> git.droids-corp.org - dpdk.git/blobdiff - examples/vm_power_manager/power_manager.h
examples/qos_sched: do not dereference global config struct
[dpdk.git] / examples / vm_power_manager / power_manager.h
index 45385de37994b1cec36c314b3509bf8f9251760e..e81a60ae54ca62719b1747c6a3fc2d84d05940c5 100644 (file)
@@ -19,8 +19,11 @@ struct core_details {
 struct core_info {
        uint16_t core_count;
        struct core_details *cd;
+       float branch_ratio_threshold;
 };
 
+#define BRANCH_RATIO_THRESHOLD 0.1
+
 struct core_info *
 get_core_info(void);
 
@@ -29,8 +32,6 @@ core_info_init(void);
 
 #define RTE_LOGTYPE_POWER_MANAGER RTE_LOGTYPE_USER1
 
-/* Maximum number of CPUS to manage */
-#define POWER_MGR_MAX_CPUS 64
 /**
  * Initialize power management.
  * Initializes resources and verifies the number of CPUs on the system.