MPDECISION: update MPDECISION to use DCVS, and activate it in DEFCONFIG
/arch/arm/mach-msm/msm_rq_stats.c
blob:c1842a89c9c39f087c16edfa8c099f009476bee7 -> blob:9dda257dfa4be74929ad72f34325cfb78459a995
--- arch/arm/mach-msm/msm_rq_stats.c
+++ arch/arm/mach-msm/msm_rq_stats.c
@@ -37,6 +37,24 @@
#define DEFAULT_RQ_POLL_JIFFIES 1
#define DEFAULT_DEF_TIMER_JIFFIES 5
+#ifdef CONFIG_MSM_MPDEC
+unsigned int get_rq_info(void)
+{
+ unsigned long flags = 0;
+ unsigned int rq = 0;
+
+ spin_lock_irqsave(&rq_lock, flags);
+
+ rq = rq_info.rq_avg;
+ rq_info.rq_avg = 0;
+
+ spin_unlock_irqrestore(&rq_lock, flags);
+
+ return rq;
+}
+EXPORT_SYMBOL(get_rq_info);
+#endif
+
static void def_work_fn(struct work_struct *work)
{
int64_t diff;