sh: clkfwk: Improve the generic clk_set_parent() implementation.
commitaa87aa343f2cd236b5eccd643abd4df918ed5c4f
authorPaul Mundt <lethal@linux-sh.org>
Mon, 11 May 2009 20:51:05 +0000 (12 05:51 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 11 May 2009 20:51:05 +0000 (12 05:51 +0900)
tree2a6dbd7be7f6ce9d00c0800e8a10a7cb7ed7c7d1
parentae891a4264c91246c0b4c22be68b9838747ae48d
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>
arch/sh/include/asm/clock.h
arch/sh/kernel/cpu/clock.c