summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRohit Gupta <rohgup@codeaurora.org>2014-10-24 15:03:22 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 21:22:18 -0700
commitc4d4ef627d935f0fdcf68769d92fd16c80912f64 (patch)
treec6fb588b365b9102e345e2ca71482c5c6f07a95a /include
parent5c564b7ccabfee5ab4ac242332e396f4073313f1 (diff)
soc: qcom: Add a msm_performance module
Sometimes for power saving reasons we might want to keep fewer CPUs online without adversely affecting performance for certain real world usecases. This module helps to provide that hotplug support to the userspace such that it tries to make a best effort in keeping a certain number of CPUs online as specified by the userspace. It allows any userspace entity to specify the CPUs that it wants to manage with this module and of those, the number of CPUs that should be kept online. Change-Id: I82c6d6e998d3740ad6f8c67b47344ce87f328b8b Signed-off-by: Rohit Gupta <rohgup@codeaurora.org>
Diffstat (limited to 'include')
-rw-r--r--include/trace/events/power.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/include/trace/events/power.h b/include/trace/events/power.h
index 47d25a651c2a..0af804eb97c7 100644
--- a/include/trace/events/power.h
+++ b/include/trace/events/power.h
@@ -765,6 +765,35 @@ TRACE_EVENT(memlat_dev_update,
__entry->vote)
);
+DECLARE_EVENT_CLASS(kpm_module,
+
+ TP_PROTO(unsigned int managed_cpus, unsigned int max_cpus),
+
+ TP_ARGS(managed_cpus, max_cpus),
+
+ TP_STRUCT__entry(
+ __field(u32, managed_cpus)
+ __field(u32, max_cpus)
+ ),
+
+ TP_fast_assign(
+ __entry->managed_cpus = managed_cpus;
+ __entry->max_cpus = max_cpus;
+ ),
+
+ TP_printk("managed:%x max_cpus=%u", (unsigned int)__entry->managed_cpus,
+ (unsigned int)__entry->max_cpus)
+);
+
+DEFINE_EVENT(kpm_module, set_max_cpus,
+ TP_PROTO(unsigned int managed_cpus, unsigned int max_cpus),
+ TP_ARGS(managed_cpus, max_cpus)
+);
+
+DEFINE_EVENT(kpm_module, reevaluate_hotplug,
+ TP_PROTO(unsigned int managed_cpus, unsigned int max_cpus),
+ TP_ARGS(managed_cpus, max_cpus)
+);
#endif /* _TRACE_POWER_H */
/* This part must be outside protection */