diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-09-22 11:30:50 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-09-27 09:25:02 +0100 |
commit | 40d3e0f4942ec12c4521fe1b2a2b774164cd2c80 (patch) | |
tree | 2c1fb0c4f3e298a2dcf4d8ddb32b4b1577408833 /drivers/amba | |
parent | 6cfa6279edbffa921b7d8c9519bfd83a24ba508e (diff) | |
download | talos-obmc-linux-40d3e0f4942ec12c4521fe1b2a2b774164cd2c80.tar.gz talos-obmc-linux-40d3e0f4942ec12c4521fe1b2a2b774164cd2c80.zip |
clk: provide prepare/unprepare functions
As discussed previously, there's the need on some platforms to run some
parts of clk_enable() in contexts which can schedule. The solution
which was agreed upon was to provide clk_prepare() and clk_unprepare()
to contain this parts, while clk_enable() and clk_disable() perform
the atomic part.
This patch provides a common definition for clk_prepare() and
clk_unprepare() in linux/clk.h, and provides an upgrade path for
existing implementation and drivers: drivers can start using
clk_prepare() and clk_unprepare() once this patch is merged without
having to wait for platform support. Platforms can then start to
provide these additional functions.
Eventually, HAVE_CLK_PREPARE will be removed from the kernel, and
everyone will have to provide these new APIs.
Acked-by: Saravana Kannan <skannan@codeaurora.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/amba')
0 files changed, 0 insertions, 0 deletions