Skip to contentSkip to conversation

swsusp for 2.5.8: find_last_bit_set

PATCH Pavel Machek 1 participant 1 message Apr 21, 2002

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi!

For software suspend [enabling suspend to disk on any machine], I need find_last_bit_set interface. Here it is, please apply.

Pavel

include/asm-generic/bitops.h +6 -0
@@ -51,6 +51,12 @@
 	return ((mask & *addr) != 0);
 }
 
+/*
+ * fls: find last bit set.
+ */
+
+#define fls(x) generic_fls(x)
+
 #ifdef __KERNEL__
 
 /*
include/asm-i386/bitops.h +6 -0
@@ -414,6 +414,12 @@
 	return word;
 }
 
+/*
+ * fls: find last bit set.
+ */
+
+#define fls(x) generic_fls(x)
+
 #ifdef __KERNEL__
 
 /*
include/linux/bitops.h +42 -1

54 lines not on this page · raw message

Signature · 2 lines
(about SSSCA) "I don't say this lightly.  However, I really think that the U.S.
no longer is classifiable as a democracy, but rather as a plutocracy." --hpa