diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2005-08-17 13:57:34 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2005-10-29 14:32:10 -0400 |
commit | 27c7c1657df54352838d176b39e119b799bf7855 (patch) | |
tree | 6bbb4e2cd33f4d3abf087fc72915673f981889f1 /include/asm-mips | |
parent | 340ee4b98c0543b5632cac975a7449a2d28762d8 (diff) |
Drop might_sleep() calls from get_user() & co. This should fix the issue
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>
Diffstat (limited to 'include/asm-mips')
-rw-r--r-- | include/asm-mips/uaccess.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/asm-mips/uaccess.h b/include/asm-mips/uaccess.h index b41901db69b8..41bb96bb2120 100644 --- a/include/asm-mips/uaccess.h +++ b/include/asm-mips/uaccess.h | |||
@@ -213,7 +213,6 @@ struct __large_struct { unsigned long buf[100]; }; | |||
213 | __typeof(*(ptr)) __gu_val = (__typeof(*(ptr))) 0; \ | 213 | __typeof(*(ptr)) __gu_val = (__typeof(*(ptr))) 0; \ |
214 | long __gu_err = 0; \ | 214 | long __gu_err = 0; \ |
215 | \ | 215 | \ |
216 | might_sleep(); \ | ||
217 | switch (size) { \ | 216 | switch (size) { \ |
218 | case 1: __get_user_asm("lb", ptr); break; \ | 217 | case 1: __get_user_asm("lb", ptr); break; \ |
219 | case 2: __get_user_asm("lh", ptr); break; \ | 218 | case 2: __get_user_asm("lh", ptr); break; \ |
@@ -300,7 +299,6 @@ extern void __get_user_unknown(void); | |||
300 | __typeof__(*(ptr)) __pu_val; \ | 299 | __typeof__(*(ptr)) __pu_val; \ |
301 | long __pu_err = 0; \ | 300 | long __pu_err = 0; \ |
302 | \ | 301 | \ |
303 | might_sleep(); \ | ||
304 | __pu_val = (x); \ | 302 | __pu_val = (x); \ |
305 | switch (size) { \ | 303 | switch (size) { \ |
306 | case 1: __put_user_asm("sb", ptr); break; \ | 304 | case 1: __put_user_asm("sb", ptr); break; \ |