diff mbox

PM / QoS: Export dev_pm_qos_update_user_latency_tolerance

Message ID 20170221075304.30131-2-kai.heng.feng@canonical.com
State New
Headers show

Commit Message

Kai-Heng Feng Feb. 21, 2017, 7:53 a.m. UTC
From: Andrew Lutomirski <luto@kernel.org>

BugLink: https://bugs.launchpad.net/bugs/1666401

nvme wants a module parameter that overrides the default latency
tolerance.  This makes it easy for nvme to reflect that default in
sysfs.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
(cherry picked from commit 034e7906211c18c230ef4da43a1c44796dd5b95e)
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
---
 drivers/base/power/qos.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Colin Ian King Feb. 21, 2017, 12:24 p.m. UTC | #1
On 21/02/17 07:53, Kai-Heng Feng wrote:
> From: Andrew Lutomirski <luto@kernel.org>
> 
> BugLink: https://bugs.launchpad.net/bugs/1666401
> 
> nvme wants a module parameter that overrides the default latency
> tolerance.  This makes it easy for nvme to reflect that default in
> sysfs.
> 
> Signed-off-by: Andy Lutomirski <luto@kernel.org>
> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
> (cherry picked from commit 034e7906211c18c230ef4da43a1c44796dd5b95e)
> Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
> ---
>  drivers/base/power/qos.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/base/power/qos.c b/drivers/base/power/qos.c
> index 7f3646e459cb..492611eebf39 100644
> --- a/drivers/base/power/qos.c
> +++ b/drivers/base/power/qos.c
> @@ -883,6 +883,7 @@ int dev_pm_qos_update_user_latency_tolerance(struct device *dev, s32 val)
>  	mutex_unlock(&dev_pm_qos_mtx);
>  	return ret;
>  }
> +EXPORT_SYMBOL_GPL(dev_pm_qos_update_user_latency_tolerance);
>  
>  /**
>   * dev_pm_qos_expose_latency_tolerance - Expose latency tolerance to userspace
> 
Acked-by: Colin Ian King <colin.king@canonical.com>
diff mbox

Patch

diff --git a/drivers/base/power/qos.c b/drivers/base/power/qos.c
index 7f3646e459cb..492611eebf39 100644
--- a/drivers/base/power/qos.c
+++ b/drivers/base/power/qos.c
@@ -883,6 +883,7 @@  int dev_pm_qos_update_user_latency_tolerance(struct device *dev, s32 val)
 	mutex_unlock(&dev_pm_qos_mtx);
 	return ret;
 }
+EXPORT_SYMBOL_GPL(dev_pm_qos_update_user_latency_tolerance);
 
 /**
  * dev_pm_qos_expose_latency_tolerance - Expose latency tolerance to userspace