aboutsummaryrefslogtreecommitdiff
path: root/arch/powerpc/include/asm/bitops.h
diff options
context:
space:
mode:
authorGravatar Boqun Feng <boqun.feng@linux.vnet.ibm.com> 2014-11-11 12:50:22 +0800
committerGravatar Michael Ellerman <mpe@ellerman.id.au> 2014-11-12 16:31:46 +1100
commite7a7a65ed2e90c41341aafef9458d0aa8143a558 (patch)
tree641182d1e32acabf10acb7523b9628d746ab0381 /arch/powerpc/include/asm/bitops.h
parentpowerpc: Fix compilation of emulate_step() (diff)
downloadlinux-e7a7a65ed2e90c41341aafef9458d0aa8143a558.tar.gz
linux-e7a7a65ed2e90c41341aafef9458d0aa8143a558.tar.bz2
linux-e7a7a65ed2e90c41341aafef9458d0aa8143a558.zip
powerpc: Fix comment typos in arch/powerpc/include/asm/bitops.h
In arch/powerpc/include/asm/bitops.h, the comments about bit numbers in large (> 1 word) bitmaps have two typos: - On ppc64 system, the LSB of the 4th word should be bit 192 rather than 196, because if it's bit 196, bit 192-195 will be missing in the bitmap. - On ppc32 system, the LSB of the second word should be bit 32 rather than 31, because bit 31 is already in the first word. This patch fixes these typos. Signed-off-by: Boqun Feng <boqun.feng@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include/asm/bitops.h')
-rw-r--r--arch/powerpc/include/asm/bitops.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/include/asm/bitops.h b/arch/powerpc/include/asm/bitops.h
index c633f058ba43..59abc620f8e8 100644
--- a/arch/powerpc/include/asm/bitops.h
+++ b/arch/powerpc/include/asm/bitops.h
@@ -14,9 +14,9 @@
*
* The bitop functions are defined to work on unsigned longs, so for a
* ppc64 system the bits end up numbered:
- * |63..............0|127............64|191...........128|255...........196|
+ * |63..............0|127............64|191...........128|255...........192|
* and on ppc32:
- * |31.....0|63....31|95....64|127...96|159..128|191..160|223..192|255..224|
+ * |31.....0|63....32|95....64|127...96|159..128|191..160|223..192|255..224|
*
* There are a few little-endian macros used mostly for filesystem
* bitmaps, these work on similar bit arrays layouts, but