[SPARC64]: Add sun4v_cpu_qconf() hypervisor call.
[cascardo/linux.git] / include / asm-h8300 / bitops.h
index c0411ec..ff7c2b7 100644 (file)
@@ -227,7 +227,7 @@ static __inline__ int find_next_zero_bit (const unsigned long * addr, int size,
        tmp = *p;
 
 found_first:
-       tmp |= ~0UL >> size;
+       tmp |= ~0UL << size;
 found_middle:
        return result + ffz(tmp);
 }