]> git.baikalelectronics.ru Git - kernel.git/commit
PM / devfreq: cache the last call to get_dev_status()
authorJavi Merino <javi.merino@arm.com>
Fri, 14 Aug 2015 17:56:56 +0000 (18:56 +0100)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Fri, 11 Sep 2015 05:23:28 +0000 (14:23 +0900)
commitc5407d533f8a73268292fe9b0acba1631943d1d1
tree71344662250f9bd22389a86e886a1aa6b67c7fed
parent3ab40de6b6ef387bd30c54938e57746af8d4a0c5
PM / devfreq: cache the last call to get_dev_status()

The return value of get_dev_status() can be reused.  Cache it so that
other parts of the kernel can reuse it instead of having to call the
same function again.

Cc: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Javi Merino <javi.merino@arm.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
drivers/devfreq/governor_simpleondemand.c
include/linux/devfreq.h