]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-mn10300/bitops.h
OMAP: dmtimer: enable all timers to be wakeup events
[linux-2.6-omap-h63xx.git] / include / asm-mn10300 / bitops.h
index cc6d40c05cf3a369951ed8571f7bf226c844405f..0b610f482abb9fbe0622e9b6758cbc758e046de3 100644 (file)
@@ -195,6 +195,17 @@ int fls(int x)
        return (x != 0) ? __ilog2_u32(x) + 1 : 0;
 }
 
+/**
+ * __fls - find last (most-significant) set bit in a long word
+ * @word: the word to search
+ *
+ * Undefined if no set bit exists, so code should check against 0 first.
+ */
+static inline unsigned long __fls(unsigned long word)
+{
+       return __ilog2_u32(word);
+}
+
 /**
  * ffs - find first bit set
  * @x: the word to search