projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35af89e
)
[POWERPC] Fix wraparound problem in smp-tbsync on 32-bit
author
Adrian Cox
<
[email protected]
>
Fri, 17 Nov 2006 14:35:48 +0000
(14:35 +0000)
committer
Paul Mackerras
<
[email protected]
>
Mon, 4 Dec 2006 09:39:35 +0000
(20:39 +1100)
The patch below fixes an arithmetic wrap-around issue on 32bit machines
using smp-tbsync. Without this patch a timebase value over
0x000000007fffffff will hang the boot process while bringing up
secondary CPUs.
Signed-off-by: Adrian Cox <
[email protected]
>
Signed-off-by: Paul Mackerras <
[email protected]
>
arch/powerpc/kernel/smp-tbsync.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/kernel/smp-tbsync.c
b/arch/powerpc/kernel/smp-tbsync.c
index de59c6c31a5b81f1cc3f28ff12af611d4b558df5..e1970f83f14abee0bb6d18e9f4f7856d5f76ae55 100644
(file)
--- a/
arch/powerpc/kernel/smp-tbsync.c
+++ b/
arch/powerpc/kernel/smp-tbsync.c
@@
-78,7
+78,7
@@
static int __devinit start_contest(int cmd, long offset, int num)
{
int i, score=0;
u64 tb;
-
long
mark;
+
u64
mark;
tbsync->cmd = cmd;