Skip to contentSkip to conversation

Simplify virt_to_phys.

S390 Martin Schwidefsky 1 participant 1 message Jan 26, 2007

lore
Share & tools
lore
#0 lore raw

From: Heiko Carstens <[email protected]>

[S390] Simplify virt_to_phys.

No need to use lrag in 64 bit addressing mode since lra will do the same.

---

 include/asm-s390/io.h |    4 ----
 1 files changed, 4 deletions(-)
include/asm-s390/io.h +0 -4
diff -urpN linux-2.6/include/asm-s390/io.h linux-2.6-patched/include/asm-s390/io.h
@@ -28,11 +28,7 @@ static inline unsigned long virt_to_phys
 {
 	unsigned long real_address;
 	asm volatile(
-#ifndef __s390x__
 		 "	lra	%0,0(%1)\n"
-#else /* __s390x__ */
-		 "	lrag	%0,0(%1)\n"
-#endif /* __s390x__ */
 		 "	jz	0f\n"
 		 "	la	%0,0\n"
                  "0:"