diff options
author | Arnd Bergmann <arnd@arndb.de> | 2012-02-24 07:39:18 -0500 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2012-02-24 07:39:18 -0500 |
commit | fdc24d4ba20499febb90ff17d3b75674026712f8 (patch) | |
tree | 83cebb162add24be7b395090b4daca4bd752641b /include/linux/bitops.h | |
parent | a5f17d1f4c2831b9b9bf8b1a537cdbac995d6e13 (diff) | |
parent | 059289b260826deb43601644a7ad39c2608e6861 (diff) |
Merge branch 'vexpress-dt-v3.3-rc4' of git://git.linaro.org/people/pawelmoll/linux into next/dt
* 'vexpress-dt-v3.3-rc4' of git://git.linaro.org/people/pawelmoll/linux: (573 commits)
ARM: vexpress: Add Device Tree for V2P-CA15 core tile (TC1 variant)
ARM: vexpress: Add Device Tree for V2P-CA9 core tile
ARM: vexpress: Add Device Tree for V2P-CA5s core tile
ARM: vexpress: Motherboard RS1 memory map support
ARM: vexpress: Add Device Tree support
ARM: vexpress: Use FDT data in platform SMP calls
ARM: versatile: Map local timers using Device Tree when possible
ARM: vexpress: Get rid of MMIO_P2V
This adds full device tree boot support for the versatile express
platform, as has been awaited for a long time.
Conflicts:
arch/arm/mach-vexpress/core.h
The definition of AMBA_DEVICE was removed in one branch, and the
definition of MMIO_P2V was removed in the other branch.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'include/linux/bitops.h')
-rw-r--r-- | include/linux/bitops.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/linux/bitops.h b/include/linux/bitops.h index 3c1063acb2ab..94300fe46cce 100644 --- a/include/linux/bitops.h +++ b/include/linux/bitops.h | |||
@@ -56,6 +56,26 @@ static inline unsigned long hweight_long(unsigned long w) | |||
56 | } | 56 | } |
57 | 57 | ||
58 | /** | 58 | /** |
59 | * rol64 - rotate a 64-bit value left | ||
60 | * @word: value to rotate | ||
61 | * @shift: bits to roll | ||
62 | */ | ||
63 | static inline __u64 rol64(__u64 word, unsigned int shift) | ||
64 | { | ||
65 | return (word << shift) | (word >> (64 - shift)); | ||
66 | } | ||
67 | |||
68 | /** | ||
69 | * ror64 - rotate a 64-bit value right | ||
70 | * @word: value to rotate | ||
71 | * @shift: bits to roll | ||
72 | */ | ||
73 | static inline __u64 ror64(__u64 word, unsigned int shift) | ||
74 | { | ||
75 | return (word >> shift) | (word << (64 - shift)); | ||
76 | } | ||
77 | |||
78 | /** | ||
59 | * rol32 - rotate a 32-bit value left | 79 | * rol32 - rotate a 32-bit value left |
60 | * @word: value to rotate | 80 | * @word: value to rotate |
61 | * @shift: bits to roll | 81 | * @shift: bits to roll |