]> git.baikalelectronics.ru Git - kernel.git/commit
clk: keystone: sci-clk: cache results of last query rate operation
authorTero Kristo <t-kristo@ti.com>
Mon, 7 Sep 2020 08:57:39 +0000 (11:57 +0300)
committerStephen Boyd <sboyd@kernel.org>
Tue, 22 Sep 2020 19:58:43 +0000 (12:58 -0700)
commit25dddd7ad5c8813af2d9d7edfc5333c595a05794
treec26137d678d0cc923706d9c2145c89a6a19d11e3
parent4772b64cc03374ab4b6d4013ece085492e21c1af
clk: keystone: sci-clk: cache results of last query rate operation

Cache results of the latest query rate operation. This optimizes the
firmware interface a bit, avoiding unnecessary calls to firmware if we
know the result already; the firmware interface is pretty expensive
to use for query rate functionality.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
Link: https://lore.kernel.org/r/20200907085740.1083-3-t-kristo@ti.com
Acked-by: Santosh Shilimkar <ssantosh@kernel.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/keystone/sci-clk.c