microblaze: Don't use access_ok for unaligned

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Friday, June 12, 2009 - 2:02 pm

Gitweb:     http://git.kernel.org/linus/3447ef29a7f3b1fd0d8d58376950e695e04f6f8b
Commit:     3447ef29a7f3b1fd0d8d58376950e695e04f6f8b
Parent:     77bc7ac87d0d6df1ea099a44e8fc4e998e409606
Author:     John Williams <john.williams@petalogix.com>
AuthorDate: Tue Mar 24 11:10:00 2009 +1000
Committer:  Michal Simek <monstr@monstr.eu>
CommitDate: Tue Jun 2 08:39:16 2009 +0200

    microblaze: Don't use access_ok for unaligned
    
    it assumes we have an unaligned exception handler which
    
     (a) may not be true
     (b) costs a lot of performance
     Instead we'll use struct/union method for big endian accesses,
      and byte-shifting for little endian.
    
    Signed-off-by: John Williams <john.williams@petalogix.com>
---
 arch/microblaze/include/asm/unaligned.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/arch/microblaze/include/asm/unaligned.h b/arch/microblaze/include/asm/unaligned.h
index 9d66b64..3658d91 100644
--- a/arch/microblaze/include/asm/unaligned.h
+++ b/arch/microblaze/include/asm/unaligned.h
@@ -12,7 +12,8 @@
 
 # ifdef __KERNEL__
 
-# include <linux/unaligned/access_ok.h>
+# include <linux/unaligned/be_struct.h>
+# include <linux/unaligned/le_byteshift.h>
 # include <linux/unaligned/generic.h>
 
 # define get_unaligned	__get_unaligned_be
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
microblaze: Don't use access_ok for unaligned, Linux Kernel Mailing ..., (Fri Jun 12, 2:02 pm)