PM / devfreq: add relation of recommended frequency.
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Fri, 16 Mar 2012 20:54:53 +0000 (21:54 +0100)
committerRafael J. Wysocki <rjw@sisk.pl>
Sat, 17 Mar 2012 20:51:34 +0000 (21:51 +0100)
commitab5f299f51259fd2466cf35c89d79bd960e0fc32
tree2c8b409511e48e04833b57457acdb98207201b0b
parente4c9d8efe6bdc844071d68960dfa2003c5cf6449
PM / devfreq: add relation of recommended frequency.

The semantics of "target frequency" given to devfreq driver from
devfreq framework has always been interpretted as "at least" or GLB
(greatest lower bound). However, the framework might want the
device driver to limit its max frequency (LUB: least upper bound),
especially if it is given by thermal framework (it's too hot).

Thus, the target fuction should have another parameter to express
whether the framework wants GLB or LUB. And, the additional parameter,
"u32 flags", does it.

With the update, devfreq_recommended_opp() is also updated.

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Reviewed-by: Mike Turquette <mturquette@ti.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
drivers/devfreq/devfreq.c
drivers/devfreq/exynos4_bus.c
include/linux/devfreq.h