PM_QOS_BUS_THROUGHPUT,
PM_QOS_NETWORK_THROUGHPUT,
PM_QOS_MEMORY_BANDWIDTH,
+ PM_QOS_DISPLAY_THROUGHPUT,
+ PM_QOS_CAM_THROUGHPUT,
/* insert new class ID */
PM_QOS_NUM_CLASSES,
#define PM_QOS_NETWORK_LAT_DEFAULT_VALUE (2000 * USEC_PER_SEC)
#define PM_QOS_DEVICE_THROUGHPUT_DEFAULT_VALUE 0
#define PM_QOS_BUS_THROUGHPUT_DEFAULT_VALUE 0
+#define PM_QOS_DISPLAY_THROUGHPUT_DEFAULT_VALUE 0
+#define PM_QOS_CAM_THROUGHPUT_DEFAULT_VALUE 0
#define PM_QOS_NETWORK_THROUGHPUT_DEFAULT_VALUE 0
#define PM_QOS_MEMORY_BANDWIDTH_DEFAULT_VALUE 0
#define PM_QOS_RESUME_LATENCY_DEFAULT_VALUE 0
};
+static BLOCKING_NOTIFIER_HEAD(display_throughput_notifier);
+static struct pm_qos_constraints display_tput_constraints = {
+ .list = PLIST_HEAD_INIT(display_tput_constraints.list),
+ .target_value = PM_QOS_DISPLAY_THROUGHPUT_DEFAULT_VALUE,
+ .default_value = PM_QOS_DISPLAY_THROUGHPUT_DEFAULT_VALUE,
+ .type = PM_QOS_MAX,
+ .notifiers = &display_throughput_notifier,
+};
+static struct pm_qos_object display_throughput_pm_qos = {
+ .constraints = &display_tput_constraints,
+ .name = "display_throughput",
+};
+
+static BLOCKING_NOTIFIER_HEAD(cam_throughput_notifier);
+static struct pm_qos_constraints cam_tput_constraints = {
+ .list = PLIST_HEAD_INIT(cam_tput_constraints.list),
+ .target_value = PM_QOS_CAM_THROUGHPUT_DEFAULT_VALUE,
+ .default_value = PM_QOS_CAM_THROUGHPUT_DEFAULT_VALUE,
+ .type = PM_QOS_MAX,
+ .notifiers = &cam_throughput_notifier,
+};
+static struct pm_qos_object cam_throughput_pm_qos = {
+ .constraints = &cam_tput_constraints,
+ .name = "cam_throughput",
+};
+
+
static struct pm_qos_object *pm_qos_array[] = {
&null_pm_qos,
&cpu_dma_pm_qos,
&bus_throughput_pm_qos,
&network_throughput_pm_qos,
&memory_bandwidth_pm_qos,
+ &display_throughput_pm_qos,
+ &cam_throughput_pm_qos,
};
static ssize_t pm_qos_power_write(struct file *filp, const char __user *buf,