summaryrefslogtreecommitdiff
path: root/recipes/initscripts/files/arm
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2009-03-31 17:38:50 +0200
committerKoen Kooi <koen@openembedded.org>2009-03-31 17:38:50 +0200
commitb48e4e380f359631131bebace6e768ebfdefcfd8 (patch)
tree0a59183a953c2e0ac2b7457b9e3c4acb04f843c7 /recipes/initscripts/files/arm
parent012773361debc156769494e1672ea81fb4617f27 (diff)
initscripts: set alignment to 0 for armv7a
* the previous change was meant to do that, but depended on kernel config * runtime tested on beagleboard, omap3evm and omapzoom
Diffstat (limited to 'recipes/initscripts/files/arm')
-rw-r--r--recipes/initscripts/files/arm/alignment.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/recipes/initscripts/files/arm/alignment.sh b/recipes/initscripts/files/arm/alignment.sh
index 32a9eaace2..1082908a12 100644
--- a/recipes/initscripts/files/arm/alignment.sh
+++ b/recipes/initscripts/files/arm/alignment.sh
@@ -1,6 +1,10 @@
#!/bin/sh
-if [ -e /proc/cpu/alignment ] && ! [ $(uname -m) = "armv7l" ]; then
- echo "3" > /proc/cpu/alignment
+if [ -e /proc/cpu/alignment ] ; then
+ if [ $(uname -m) = "armv7l" ]; then
+ echo "0" > /proc/cpu/alignment
+ else
+ echo "3" > /proc/cpu/alignment
+ fi
fi