PM / devfreq: Fix available_governor sysfs
authorChanwoo Choi <cw00.choi@samsung.com>
Tue, 31 Jan 2017 06:38:16 +0000 (15:38 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 12 Mar 2017 05:41:44 +0000 (06:41 +0100)
commit2294b771a4b425d9365aabeaff8d33ccd0c0fffe
treef16438f5e986d75df62fdd1fb2a0810be43b25f9
parentd9cc31683a16f5619217d80c3d8e608c23c41afc
PM / devfreq: Fix available_governor sysfs

commit bcf23c79c4e46130701370af4383b61a3cba755c upstream.

The devfreq using passive governor is not able to change the governor.
So, the user can not change the governor through 'available_governor' sysfs
entry. Also, the devfreq which don't use the passive governor is not able to
change to 'passive' governor on the fly.

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_passive.c
include/linux/devfreq.h