msm: idle_stats: Permit GPU DCVS daemon to configure number of samples

Add a struct member to allow GPU DCVS daemon to configure the number
of samples collected at runtime. This increases the responsiveness
of the daemon in low fps use cases.

Change-Id: Ibbf17c8a81c9bd819d96c16af2f17bc60c999df9
Signed-off-by: Lynus Vaz <lvaz@codeaurora.org>
diff --git a/include/linux/idle_stats_device.h b/include/linux/idle_stats_device.h
index a531b7a..cd613af 100644
--- a/include/linux/idle_stats_device.h
+++ b/include/linux/idle_stats_device.h
@@ -34,6 +34,7 @@
 struct msm_idle_write_stats {
 	__u32 busy_timer;
 	__u32 next_busy_timer;
+	__u32 max_samples;
 };
 
 #define MSM_IDLE_STATS_IOC_MAGIC  0xD8
@@ -60,6 +61,7 @@
 	ktime_t busy_timer_interval;
 	ktime_t idle_start;
 	ktime_t remaining_time;
+	__u32 max_samples;
 
 	struct msm_idle_read_stats *stats;
 	struct msm_idle_read_stats stats_vector[2];