PM / devfreq: Fix wrong trans_stat of passive devfreq device
authorChanwoo Choi <cw00.choi@samsung.com>
Tue, 31 Jan 2017 06:38:17 +0000 (15:38 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 12 Mar 2017 05:41:44 +0000 (06:41 +0100)
commitfe8f92c7beba2f1c6b1235e52e199eafbe4aa39a
treed1a904469752c7a6b1dde2ba42cee04fbc4a9261
parent2294b771a4b425d9365aabeaff8d33ccd0c0fffe
PM / devfreq: Fix wrong trans_stat of passive devfreq device

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.

Fixes: 996133119f57 ("PM / devfreq: Add new passive governor")
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/devfreq/devfreq.c
drivers/devfreq/governor.h
drivers/devfreq/governor_passive.c