diff options
Diffstat (limited to 'arch/score/include')
-rw-r--r-- | arch/score/include/asm/thread_info.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/arch/score/include/asm/thread_info.h b/arch/score/include/asm/thread_info.h index 3a1122885528..55939992c27d 100644 --- a/arch/score/include/asm/thread_info.h +++ b/arch/score/include/asm/thread_info.h | |||
@@ -7,6 +7,15 @@ | |||
7 | #define KU_USER 0x08 | 7 | #define KU_USER 0x08 |
8 | #define KU_KERN 0x00 | 8 | #define KU_KERN 0x00 |
9 | 9 | ||
10 | #include <asm/page.h> | ||
11 | #include <linux/const.h> | ||
12 | |||
13 | /* thread information allocation */ | ||
14 | #define THREAD_SIZE_ORDER (1) | ||
15 | #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER) | ||
16 | #define THREAD_MASK (THREAD_SIZE - _AC(1,UL)) | ||
17 | #define __HAVE_ARCH_THREAD_INFO_ALLOCATOR | ||
18 | |||
10 | #ifndef __ASSEMBLY__ | 19 | #ifndef __ASSEMBLY__ |
11 | 20 | ||
12 | #include <asm/processor.h> | 21 | #include <asm/processor.h> |
@@ -62,12 +71,6 @@ struct thread_info { | |||
62 | register struct thread_info *__current_thread_info __asm__("r28"); | 71 | register struct thread_info *__current_thread_info __asm__("r28"); |
63 | #define current_thread_info() __current_thread_info | 72 | #define current_thread_info() __current_thread_info |
64 | 73 | ||
65 | /* thread information allocation */ | ||
66 | #define THREAD_SIZE_ORDER (1) | ||
67 | #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER) | ||
68 | #define THREAD_MASK (THREAD_SIZE - 1UL) | ||
69 | #define __HAVE_ARCH_THREAD_INFO_ALLOCATOR | ||
70 | |||
71 | #define alloc_thread_info(tsk) kmalloc(THREAD_SIZE, GFP_KERNEL) | 74 | #define alloc_thread_info(tsk) kmalloc(THREAD_SIZE, GFP_KERNEL) |
72 | #define free_thread_info(info) kfree(info) | 75 | #define free_thread_info(info) kfree(info) |
73 | 76 | ||