Skip to content

Commit

Permalink
Drop might_sleep() calls from get_user() & co. This should fix the issue
Browse files Browse the repository at this point in the history
in http://www.linux-mips.org/cgi-bin/mesg.cgi?a=linux-mips&i=200508171321.20094.Joshua.Wise%40sicortex.com and it's the right thing to do anyway because
it was inflating those functions way too much.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Ralf Baechle committed Oct 29, 2005
1 parent 340ee4b commit 27c7c16
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions include/asm-mips/uaccess.h
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,6 @@ struct __large_struct { unsigned long buf[100]; };
__typeof(*(ptr)) __gu_val = (__typeof(*(ptr))) 0; \
long __gu_err = 0; \
\
might_sleep(); \
switch (size) { \
case 1: __get_user_asm("lb", ptr); break; \
case 2: __get_user_asm("lh", ptr); break; \
Expand Down Expand Up @@ -300,7 +299,6 @@ extern void __get_user_unknown(void);
__typeof__(*(ptr)) __pu_val; \
long __pu_err = 0; \
\
might_sleep(); \
__pu_val = (x); \
switch (size) { \
case 1: __put_user_asm("sb", ptr); break; \
Expand Down

0 comments on commit 27c7c16

Please sign in to comment.