]> git.baikalelectronics.ru Git - kernel.git/commit
PM / devfreq: fix initialization of current frequency in last status
authorLukasz Luba <lukasz.luba@arm.com>
Tue, 31 May 2016 10:25:09 +0000 (11:25 +0100)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 22 Jun 2016 04:53:00 +0000 (13:53 +0900)
commitf90f425c2e4d957a119ea797ce10b46b112c806d
tree3f427f2a961e91c8ada3b93a97af1b380415fa7f
parent4f1c181af3dfcafa52d35c8a403474a60d5db375
PM / devfreq: fix initialization of current frequency in last status

Some systems need current frequency from last_status for calculation
but it is zeroed during initialization. When the device starts there is
no history, but we can assume that the last frequency was the
same as the initial frequency (which is also used in 'previous_freq').
The log shows the result of this misinterpreted value.
[    2.042847] ... Failed to get voltage for frequency 0: -34

Signed-off-by: Lukasz Luba <lukasz.luba@arm.com>
Reviewed-by: Javi Merino <javi.merino@arm.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
drivers/devfreq/devfreq.c