Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e35a6619 authored by Heiko Carstens's avatar Heiko Carstens Committed by Linus Torvalds
Browse files

[PATCH] s390: fix __delay implementation



Fix __delay implementation.  Called with an argument "1" or "0" it would
loop nearly forever (since (1/2)-1 = 0xffffffff).

Signed-off-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 5a1342f7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@ void __delay(unsigned long loops)
         */
        __asm__ __volatile__(
                "0: brct %0,0b"
                : /* no outputs */ : "r" (loops/2) );
                : /* no outputs */ : "r" ((loops/2) + 1));
}

/*