aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/clock24xx.h
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2008-11-13 08:44:15 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2009-02-08 12:50:11 -0500
commit9a5fedac187f30116013a8420149d4ca11a44f0d (patch)
tree3cdcd9e8887a6fa41d1ddd85eb8c759990adc27b /arch/arm/mach-omap2/clock24xx.h
parenta9e882096317a088087b608d272da7029a6cc8c8 (diff)
[ARM] omap: move propagate_rate() calls into generic omap clock code
propagate_rate() is recursive, so it makes sense to minimise the amount of stack which is used for each recursion. So, rather than recursing back into it from the ->recalc functions if RATE_PROPAGATES is set, do that test at the higher level. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-omap2/clock24xx.h')
-rw-r--r--arch/arm/mach-omap2/clock24xx.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/arm/mach-omap2/clock24xx.h b/arch/arm/mach-omap2/clock24xx.h
index 486fd80143e4..e07dcba4b3e9 100644
--- a/arch/arm/mach-omap2/clock24xx.h
+++ b/arch/arm/mach-omap2/clock24xx.h
@@ -624,7 +624,6 @@ static struct clk func_32k_ck = {
624 .flags = CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X | 624 .flags = CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X |
625 RATE_FIXED | RATE_PROPAGATES, 625 RATE_FIXED | RATE_PROPAGATES,
626 .clkdm_name = "wkup_clkdm", 626 .clkdm_name = "wkup_clkdm",
627 .recalc = &propagate_rate,
628}; 627};
629 628
630/* Typical 12/13MHz in standalone mode, will be 26Mhz in chassis mode */ 629/* Typical 12/13MHz in standalone mode, will be 26Mhz in chassis mode */
@@ -655,7 +654,6 @@ static struct clk alt_ck = { /* Typical 54M or 48M, may not exist */
655 .flags = CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X | 654 .flags = CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X |
656 RATE_FIXED | RATE_PROPAGATES, 655 RATE_FIXED | RATE_PROPAGATES,
657 .clkdm_name = "wkup_clkdm", 656 .clkdm_name = "wkup_clkdm",
658 .recalc = &propagate_rate,
659}; 657};
660 658
661/* 659/*
@@ -702,7 +700,6 @@ static struct clk apll96_ck = {
702 .clkdm_name = "wkup_clkdm", 700 .clkdm_name = "wkup_clkdm",
703 .enable_reg = OMAP_CM_REGADDR(PLL_MOD, CM_CLKEN), 701 .enable_reg = OMAP_CM_REGADDR(PLL_MOD, CM_CLKEN),
704 .enable_bit = OMAP24XX_EN_96M_PLL_SHIFT, 702 .enable_bit = OMAP24XX_EN_96M_PLL_SHIFT,
705 .recalc = &propagate_rate,
706}; 703};
707 704
708static struct clk apll54_ck = { 705static struct clk apll54_ck = {
@@ -715,7 +712,6 @@ static struct clk apll54_ck = {
715 .clkdm_name = "wkup_clkdm", 712 .clkdm_name = "wkup_clkdm",
716 .enable_reg = OMAP_CM_REGADDR(PLL_MOD, CM_CLKEN), 713 .enable_reg = OMAP_CM_REGADDR(PLL_MOD, CM_CLKEN),
717 .enable_bit = OMAP24XX_EN_54M_PLL_SHIFT, 714 .enable_bit = OMAP24XX_EN_54M_PLL_SHIFT,
718 .recalc = &propagate_rate,
719}; 715};
720 716
721/* 717/*