diff options
Diffstat (limited to 'include/asm-parisc')
-rw-r--r-- | include/asm-parisc/compat.h | 4 | ||||
-rw-r--r-- | include/asm-parisc/processor.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/asm-parisc/compat.h b/include/asm-parisc/compat.h index 71b4eeea205a..fe8579023531 100644 --- a/include/asm-parisc/compat.h +++ b/include/asm-parisc/compat.h | |||
@@ -5,7 +5,7 @@ | |||
5 | */ | 5 | */ |
6 | #include <linux/types.h> | 6 | #include <linux/types.h> |
7 | #include <linux/sched.h> | 7 | #include <linux/sched.h> |
8 | #include <linux/personality.h> | 8 | #include <linux/thread_info.h> |
9 | 9 | ||
10 | #define COMPAT_USER_HZ 100 | 10 | #define COMPAT_USER_HZ 100 |
11 | 11 | ||
@@ -152,7 +152,7 @@ static __inline__ void __user *compat_alloc_user_space(long len) | |||
152 | 152 | ||
153 | static inline int __is_compat_task(struct task_struct *t) | 153 | static inline int __is_compat_task(struct task_struct *t) |
154 | { | 154 | { |
155 | return personality(t->personality) == PER_LINUX32; | 155 | return test_ti_thread_flag(t->thread_info, TIF_32BIT); |
156 | } | 156 | } |
157 | 157 | ||
158 | static inline int is_compat_task(void) | 158 | static inline int is_compat_task(void) |
diff --git a/include/asm-parisc/processor.h b/include/asm-parisc/processor.h index 4313618c98ee..fd7866dc8c83 100644 --- a/include/asm-parisc/processor.h +++ b/include/asm-parisc/processor.h | |||
@@ -278,7 +278,7 @@ on downward growing arches, it looks like this: | |||
278 | */ | 278 | */ |
279 | 279 | ||
280 | #ifdef __LP64__ | 280 | #ifdef __LP64__ |
281 | #define USER_WIDE_MODE (personality(current->personality) == PER_LINUX) | 281 | #define USER_WIDE_MODE (!test_thread_flag(TIF_32BIT)) |
282 | #else | 282 | #else |
283 | #define USER_WIDE_MODE 0 | 283 | #define USER_WIDE_MODE 0 |
284 | #endif | 284 | #endif |