#ifndef __PERF_ENV_H #define __PERF_ENV_H #include #include "cpumap.h" struct cpu_topology_map { int socket_id; int core_id; }; struct cpu_cache_level { u32 level; u32 line_size; u32 sets; u32 ways; char *type; char *size; char *map; }; struct numa_node { u32 node; u64 mem_total; u64 mem_free; struct cpu_map *map; }; struct perf_env { char *hostname; char *os_release; char *version; char *arch; int nr_cpus_online; int nr_cpus_avail; char *cpu_desc; char *cpuid; unsigned long long total_mem; unsigned int msr_pmu_type; int nr_cmdline; int nr_sibling_cores; int nr_sibling_threads; int nr_numa_nodes; int nr_pmu_mappings; int nr_groups; char *cmdline; const char **cmdline_argv; char *sibling_cores; char *sibling_threads; char *pmu_mappings; struct cpu_topology_map *cpu; struct cpu_cache_level *caches; int caches_cnt; struct numa_node *numa_nodes; }; extern struct perf_env perf_env; void perf_env__exit(struct perf_env *env); int perf_env__set_cmdline(struct perf_env *env, int argc, const char *argv[]); int perf_env__read_cpu_topology_map(struct perf_env *env); void cpu_cache_level__free(struct cpu_cache_level *cache); #endif /* __PERF_ENV_H */ emove net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/powerpc
diff options
context:
space:
mode:
authorMarkus Mayer <mmayer@broadcom.com>2016-12-19 12:10:28 -0800
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2017-01-27 11:43:49 +0100
commit3c223c19aea85d3dda1416c187915f4a30b04b1f (patch)
tree2d2021f8161db3e9ed38b9a966a225b66dff8e58 /tools/testing/selftests/powerpc
parent9b02c54bc951fca884ba5719f42a27e8240965bf (diff)
cpufreq: brcmstb-avs-cpufreq: properly retrieve P-state upon suspend
The AVS GET_PMAP command does return a P-state along with the P-map information. However, that P-state is the initial P-state when the P-map was first downloaded to AVS. It is *not* the current P-state. Therefore, we explicitly retrieve the P-state using the GET_PSTATE command. Signed-off-by: Markus Mayer <mmayer@broadcom.com> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/testing/selftests/powerpc')