summaryrefslogtreecommitdiff
path: root/include/linux/rq_stats.h
diff options
context:
space:
mode:
authorMatt Wagantall <mattw@codeaurora.org>2015-07-24 00:46:40 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-22 11:08:42 -0700
commit6b75e9afc114cf300eaf7533830d54baa8ac7e38 (patch)
treefa358ea9e23fc9c7e3173c87bc7982153a15831b /include/linux/rq_stats.h
parent5de8258ed390ab9b1f2bb5f50801389b15ae5d1e (diff)
soc: qcom: rq_stats: add snapshot of run queue stats driver
Add a snapshot of the run queue stats driver as of msm-3.10 commit 4bf320bd ("Merge "ASoC: msm8952: set async flag for 8952 dailink"") Resolve checkpatch warnings in the process, notably the replacement of sscanf with kstrtouint. Change-Id: I7e2f98223677e6477df114ffe770c0740ed37de9 Signed-off-by: Matt Wagantall <mattw@codeaurora.org> Signed-off-by: Abhimanyu Kapur <abhimany@codeaurora.org>
Diffstat (limited to 'include/linux/rq_stats.h')
-rw-r--r--include/linux/rq_stats.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/include/linux/rq_stats.h b/include/linux/rq_stats.h
new file mode 100644
index 000000000000..44cd8426de37
--- /dev/null
+++ b/include/linux/rq_stats.h
@@ -0,0 +1,31 @@
+/* Copyright (c) 2011,2013-2014, The Linux Foundation. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 and
+ * only version 2 as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ */
+
+struct rq_data {
+ unsigned int rq_avg;
+ unsigned long rq_poll_jiffies;
+ unsigned long def_timer_jiffies;
+ unsigned long rq_poll_last_jiffy;
+ unsigned long rq_poll_total_jiffies;
+ unsigned long def_timer_last_jiffy;
+ unsigned int hotplug_disabled;
+ int64_t def_start_time;
+ struct attribute_group *attr_group;
+ struct kobject *kobj;
+ struct work_struct def_timer_work;
+ int init;
+};
+
+extern spinlock_t rq_lock;
+extern struct rq_data rq_info;
+extern struct workqueue_struct *rq_wq;