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:
7473727
)
x86: Fix warning in pvclock.c
author
Dave Jones
<
[email protected]
>
Mon, 13 Jul 2009 20:14:37 +0000
(16:14 -0400)
committer
Thomas Gleixner
<
[email protected]
>
Tue, 14 Jul 2009 14:25:05 +0000
(16:25 +0200)
when building 32-bit, I see this ..
arch/x86/kernel/pvclock.c:63:7: warning: "__x86_64__" is not defined
Signed-off-by: Dave Jones <
[email protected]
>
LKML-Reference: <
20090713201437
[email protected]
>
Signed-off-by: Thomas Gleixner <
[email protected]
>
arch/x86/kernel/pvclock.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/pvclock.c
b/arch/x86/kernel/pvclock.c
index 4f9c55f3a7c0f7e2590a5e248428bd19aa0d5c37..03801f2f761fc312ba80353425c1cc7243a0105f 100644
(file)
--- a/
arch/x86/kernel/pvclock.c
+++ b/
arch/x86/kernel/pvclock.c
@@
-60,7
+60,7
@@
static inline u64 scale_delta(u64 delta, u32 mul_frac, int shift)
"adc %5,%%edx ; "
: "=A" (product), "=r" (tmp1), "=r" (tmp2)
: "a" ((u32)delta), "1" ((u32)(delta >> 32)), "2" (mul_frac) );
-#elif
__x86_64__
+#elif
defined(__x86_64__)
__asm__ (
"mul %%rdx ; shrd $32,%%rdx,%%rax"
: "=a" (product) : "0" (delta), "d" ((u64)mul_frac) );