projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ad8a05
)
74xx_7xx: Fix rounding problem in CPU frequency calculation
author
Stefan Roese
<sr@denx.de>
Thu, 14 May 2009 05:25:13 +0000
(07:25 +0200)
committer
Wolfgang Denk
<wd@denx.de>
Fri, 15 May 2009 20:22:01 +0000
(22:22 +0200)
This patch fixes a problem in the CPU frequency calculation. Without it
a 798MHz CPU is displayed as 368.503 MHz. And with it it's 798 MHz.
Signed-off-by: Stefan Roese <sr@denx.de>
cpu/74xx_7xx/speed.c
patch
|
blob
|
history
diff --git
a/cpu/74xx_7xx/speed.c
b/cpu/74xx_7xx/speed.c
index bc33a67be6edd1ce6f0ee6e5668920644b18b45b..f2fdcd5dc3dbe352e03728cf0fade7fb184a667b 100644
(file)
--- a/
cpu/74xx_7xx/speed.c
+++ b/
cpu/74xx_7xx/speed.c
@@
-149,8
+149,8
@@
int get_clocks (void)
case CPU_750GX:
case CPU_750FX:
- clock =
gd->bus_clk
*
- hid1_fx_multipliers_x_10[get_hid1 () >> 27]
/ 10
;
+ clock =
(gd->bus_clk / 10)
*
+ hid1_fx_multipliers_x_10[get_hid1 () >> 27];
break;
case CPU_7450: