PM / devfreq: Skip status update on uninitialized previous_freq
authorTobias Jakobi <tjakobi@math.uni-bielefeld.de>
Thu, 29 Sep 2016 12:36:36 +0000 (14:36 +0200)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 4 Sep 2017 05:33:28 +0000 (14:33 +0900)
commit0f1b5a471f5e9bba0a78650b5dc6d2c10e08abf7
tree7bfd3908858df705c8271e72e531f7a9a4010417
parentbf9f266875130509a7bd807af0515a515180cd0b
PM / devfreq: Skip status update on uninitialized previous_freq

In case devfreq->previous_freq is still uninitialized in
devfreq_update_status(), i.e. it has value '0', the lookups in
that function fail, eventually leading to some error message:
[    3.041292] devfreq bus_dmc: Couldn't update frequency transition information.

Just skip the statup update in this situation.

Signed-off-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>
Acked-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/devfreq/devfreq.c