Skip to content

Commit

Permalink
Revert "ARM: 7493/1: use generic unaligned.h"
Browse files Browse the repository at this point in the history
This reverts commit ca3d26d.

The commit was causing unexpected reboots / hangs probably because of
use of Linaro GCC 4.9 or the other optimizations previously applied
to this custom kernel.
  • Loading branch information
Christopher83 committed Oct 25, 2014
1 parent 803702f commit 4a7633e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
1 change: 0 additions & 1 deletion arch/arm/include/asm/Kbuild
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@ generic-y += sections.h
generic-y += siginfo.h
generic-y += simd.h
generic-y += sizes.h
generic-y += unaligned.h
19 changes: 19 additions & 0 deletions arch/arm/include/asm/unaligned.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#ifndef _ASM_ARM_UNALIGNED_H
#define _ASM_ARM_UNALIGNED_H

#include <linux/unaligned/le_byteshift.h>
#include <linux/unaligned/be_byteshift.h>
#include <linux/unaligned/generic.h>

/*
* Select endianness
*/
#ifndef __ARMEB__
#define get_unaligned __get_unaligned_le
#define put_unaligned __put_unaligned_le
#else
#define get_unaligned __get_unaligned_be
#define put_unaligned __put_unaligned_be
#endif

#endif /* _ASM_ARM_UNALIGNED_H */

0 comments on commit 4a7633e

Please sign in to comment.