diff options
author | Steven Toth <[email protected]> | 2016-09-30 05:58:00 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2016-09-30 15:18:46 -0600 |
commit | e99b9395befe5b8612df3163b4deec2a0c0cb702 (patch) | |
tree | fd87cd03eb3d1c3b44a737b70223213739daa17d /src/gallium/auxiliary/hud/hud_private.h | |
parent | 7b87190d2b778952713a02a075fb05f8b5803ca9 (diff) |
gallium/hud: Add support for CPU frequency monitoring
Detect all of the CPUs in the system. Expose metrics
for min, max and current frequency in Hz.
Signed-off-by: Steven Toth <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/hud/hud_private.h')
-rw-r--r-- | src/gallium/auxiliary/hud/hud_private.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/hud/hud_private.h b/src/gallium/auxiliary/hud/hud_private.h index 51049afb98d..c6d0dbf66fb 100644 --- a/src/gallium/auxiliary/hud/hud_private.h +++ b/src/gallium/auxiliary/hud/hud_private.h @@ -116,6 +116,12 @@ int hud_get_num_disks(bool displayhelp); #define DISKSTAT_WR 2 void hud_diskstat_graph_install(struct hud_pane *pane, const char *dev_name, unsigned int mode); + +int hud_get_num_cpufreq(bool displayhelp); +#define CPUFREQ_MINIMUM 1 +#define CPUFREQ_CURRENT 2 +#define CPUFREQ_MAXIMUM 3 +void hud_cpufreq_graph_install(struct hud_pane *pane, int cpu_index, unsigned int mode); #endif #if HAVE_LIBSENSORS |