[ARM] omap: create a proper tree of clocks
commit3f0a820c4c0b4670fb5f164baa5582e23c2ef118
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Sat, 31 Jan 2009 10:05:51 +0000 (31 10:05 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 8 Feb 2009 17:50:42 +0000 (8 17:50 +0000)
tree6af02e1456c0316791ab95e7da9c09496f29c232
parentb5088c0d90b898802318c62caf2320a53df6ce57
[ARM] omap: create a proper tree of clocks

Traditionally, we've tracked the parent/child relationships between
clk structures by setting the child's parent member to point at the
upstream clock.  As a result, when decending the tree, we have had
to scan all clocks to find the children.

Avoid this wasteful scanning by keeping a list of the clock's children.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-omap1/clock.c
arch/arm/mach-omap1/clock.h
arch/arm/mach-omap2/clock.c
arch/arm/mach-omap2/clock24xx.c
arch/arm/mach-omap2/clock24xx.h
arch/arm/mach-omap2/clock34xx.c
arch/arm/mach-omap2/clock34xx.h
arch/arm/plat-omap/clock.c
arch/arm/plat-omap/include/mach/clock.h