/*
* drivers/input/input-cfboost.c
*
- * Copyright (c) 2012-2013, NVIDIA CORPORATION. All rights reserved.
+ * Copyright (c) 2012-2014, NVIDIA CORPORATION. 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 as published by
#include <linux/input.h>
#include <linux/module.h>
#include <linux/pm_qos.h>
+#include <linux/pm_runtime.h>
#include <linux/sched/rt.h>
#define CREATE_TRACE_POINTS
pm_qos_update_request_timeout(&emc_req, boost_emc,
boost_time * 1000);
- if (gpu_wakeup && gpu_device)
+ if (gpu_wakeup && gpu_device) {
dev_pm_qos_update_request_timeout(&gpu_wakeup_req,
PM_QOS_FLAG_NO_POWER_OFF, boost_time);
+ pm_runtime_get(gpu_device);
+ pm_runtime_put_autosuspend(gpu_device);
+ }
}
static struct task_struct *boost_kthread;