diff options
author | Scott Wood <scottwood@freescale.com> | 2007-08-21 03:39:45 +1000 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-08-22 15:21:47 +1000 |
commit | 643d3c139b0a5289d7f0ba19fdcb24be6d7e768f (patch) | |
tree | a68812ee6e98c31b82d8b01f2733b01b615ad106 /arch/powerpc/boot/devtree.c | |
parent | 44d06ba72990893eb5506516b25ccaf3a757ffc0 (diff) | |
download | op-kernel-dev-643d3c139b0a5289d7f0ba19fdcb24be6d7e768f.zip op-kernel-dev-643d3c139b0a5289d7f0ba19fdcb24be6d7e768f.tar.gz |
[POWERPC] bootwrapper: Set timebase_period_ns from dt_fixup_cpu_clocks
This lets udelay() work properly on platforms which use dt_fixup_cpu_clocks.
Signed-off-by: Scott Wood <scottwood@freescale.com>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/boot/devtree.c')
-rw-r--r-- | arch/powerpc/boot/devtree.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/boot/devtree.c b/arch/powerpc/boot/devtree.c index c995155..ae8b886 100644 --- a/arch/powerpc/boot/devtree.c +++ b/arch/powerpc/boot/devtree.c @@ -74,6 +74,8 @@ void dt_fixup_cpu_clocks(u32 cpu, u32 tb, u32 bus) if (bus > 0) setprop_val(devp, "bus-frequency", bus); } + + timebase_period_ns = 1000000000 / tb; } void dt_fixup_clock(const char *path, u32 freq) |