aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/include
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2009-05-11 16:51:05 -0400
committerPaul Mundt <lethal@linux-sh.org>2009-05-11 16:51:05 -0400
commitaa87aa343f2cd236b5eccd643abd4df918ed5c4f (patch)
tree2a6dbd7be7f6ce9d00c0800e8a10a7cb7ed7c7d1 /arch/sh/include
parentae891a4264c91246c0b4c22be68b9838747ae48d (diff)
sh: clkfwk: Improve the generic clk_set_parent() implementation.
This causes the generic clk_set_parent() implementation to be a bit more intelligent. A clk_reparent() is added to move the clock over to the new parent's sibling list, which then allows the generic rate propagation code to succeed. This also becomes a nop if the new and old parents are unchanged. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/include')
-rw-r--r--arch/sh/include/asm/clock.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sh/include/asm/clock.h b/arch/sh/include/asm/clock.h
index 5de72eef9724..fdb915608dbc 100644
--- a/arch/sh/include/asm/clock.h
+++ b/arch/sh/include/asm/clock.h
@@ -48,6 +48,7 @@ int clk_init(void);
48unsigned long followparent_recalc(struct clk *); 48unsigned long followparent_recalc(struct clk *);
49void recalculate_root_clocks(void); 49void recalculate_root_clocks(void);
50void propagate_rate(struct clk *); 50void propagate_rate(struct clk *);
51int clk_reparent(struct clk *child, struct clk *parent);
51void clk_recalc_rate(struct clk *); 52void clk_recalc_rate(struct clk *);
52int clk_register(struct clk *); 53int clk_register(struct clk *);
53void clk_unregister(struct clk *); 54void clk_unregister(struct clk *);