Patch "PM / devfreq: Fix wrong trans_stat of passive devfreq device" has been added to the 4.9-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
PM / devfreq: Fix wrong trans_stat of passive devfreq device
to the 4.9-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
pm-devfreq-fix-wrong-trans_stat-of-passive-devfreq-device.patch
and it can be found in the queue-4.9 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
30582c25a4b4e0a5e456a309fde79b845e9473b2Mon Sep 17 00:00:00 2001
From: Chanwoo Choi <[email protected]>
Date: Tue, 31 Jan 2017 15:38:17 +0900
Subject: PM / devfreq: Fix wrong trans_stat of passive devfreq device
From: Chanwoo Choi <[email protected]>
commit 30582c25a4b4e0a5e456a309fde79b845e9473b2 upstream.
Until now, the trans_stat information of passive devfreq is not updated. This patch updates the trans_stat information after setting the target frequency of passive devfreq device.
--- drivers/devfreq/devfreq.c | 3 ++- drivers/devfreq/governor.h | 2 ++ drivers/devfreq/governor_passive.c | 5 +++++ 3 files changed, 9 insertions(+), 1 deletion(-)
drivers/devfreq/devfreq.c +2 -1
@@ -130,7 +130,7 @@ static void devfreq_set_freq_table(struc* @devfreq: the devfreq instance * @freq: the update target frequency */ -static int devfreq_update_status (struct devfreq *devfreq,unsigned long freq) +int devfreq_update_status (struct devfreq *devfreq,unsigned long freq) {int lev, prev_lev, ret =0 ;unsigned long cur_time;
@@ -166,6 +166,7 @@ out: devfreq->last_stat_updated = cur_time;return ret; } +EXPORT_SYMBOL (devfreq_update_status);/** * find_devfreq_governor() - find devfreq governor from name
drivers/devfreq/governor.h +2 -0
@@ -38,4 +38,6 @@ extern void devfreq_interval_update(struextern int devfreq_add_governor (struct devfreq_governor *governor);extern int devfreq_remove_governor (struct devfreq_governor *governor); +extern int devfreq_update_status (struct devfreq *devfreq,unsigned long freq); +#endif /* _GOVERNOR_H */
drivers/devfreq/governor_passive.c +5 -0
@@ -112,6 +112,11 @@ static int update_devfreq_passive(structif (ret <0 ) goto out; +if (devfreq->profile->freq_table + && (devfreq_update_status (devfreq, freq))) +dev_err (&devfreq->dev, +"Couldn't update frequency transition information.\n" ); + devfreq->previous_freq = freq; out:
Patches currently in stable-queue which might be from [email protected] are
queue-4.9/pm-devfreq-fix-wrong-trans_stat-of-passive-devfreq-device.patch queue-4.9/pm-devfreq-fix-available_governor-sysfs.patch