Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 154855
b: refs/heads/master
c: b53d4d1
h: refs/heads/master
i:
  154853: 38c12dc
  154851: 373354a
  154847: 15bb5ef
v: v3
  • Loading branch information
David Daney authored and Ralf Baechle committed Jul 3, 2009
1 parent 1f936ff commit 0c74905
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 27fdd325dace4a1ebfa10e93ba6f3d25f25df674
refs/heads/master: b53d4d1f8d522342e66f79b8b49a19835071fed4
8 changes: 6 additions & 2 deletions trunk/arch/mips/include/asm/swab.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ static inline __attribute_const__ __u32 __arch_swab32(__u32 x)
}
#define __arch_swab32 __arch_swab32

#ifdef CONFIG_CPU_MIPS64_R2
/*
* Having already checked for CONFIG_CPU_MIPSR2, enable the
* optimized version for 64-bit kernel on r2 CPUs.
*/
#ifdef CONFIG_64BIT
static inline __attribute_const__ __u64 __arch_swab64(__u64 x)
{
__asm__(
Expand All @@ -50,6 +54,6 @@ static inline __attribute_const__ __u64 __arch_swab64(__u64 x)
return x;
}
#define __arch_swab64 __arch_swab64
#endif /* CONFIG_CPU_MIPS64_R2 */
#endif /* CONFIG_64BIT */
#endif /* CONFIG_CPU_MIPSR2 */
#endif /* _ASM_SWAB_H */

0 comments on commit 0c74905

Please sign in to comment.