]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: distinguish drivers that do asynchronous notifications
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 29 Oct 2013 13:26:06 +0000 (18:56 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 30 Oct 2013 23:11:08 +0000 (00:11 +0100)
commit5c6ac3326285600ca1b01ac4b6a87faeabf28d73
treefe10dc555181b52a8fd567dcf819d5a447bb1f37
parent9399a7d65f9d0735f66b31cdc9c1a98486cccca5
cpufreq: distinguish drivers that do asynchronous notifications

There are few special cases like exynos5440 which doesn't send POSTCHANGE
notification from their ->target() routine and call some kind of bottom halves
for doing this work, work/tasklet/etc.. From which they finally send POSTCHANGE
notification.

Its better if we distinguish them from other cpufreq drivers in some way so that
core can handle them specially. So this patch introduces another flag:
CPUFREQ_ASYNC_NOTIFICATION, which will be set by such drivers.

This also changes exynos5440-cpufreq.c and powernow-k8 in order to set this
flag.

Acked-by: Amit Daniel Kachhap <amit.daniel@samsung.com>
Acked-by: Kukjin Kim <kgene.kim@samsung.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/exynos5440-cpufreq.c
drivers/cpufreq/powernow-k8.c
include/linux/cpufreq.h