diff options
| author | Thomas Gleixner <tglx@linutronix.de> | 2012-05-05 11:05:47 -0400 |
|---|---|---|
| committer | Thomas Gleixner <tglx@linutronix.de> | 2012-05-08 07:55:20 -0400 |
| commit | d909a81b198a397593495508c4a5755fe95552fb (patch) | |
| tree | a768be25c94b68d157d76d537a6bf763ea5fc076 /arch/tile/include | |
| parent | 41101809a865dd0be1b56eff46c83fad321870b2 (diff) | |
tile: Use common threadinfo allocator
Use the core allocator and deal with the extra cleanup in
arch_release_thread_info().
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Chris Metcalf <cmetcalf@tilera.com>
Link: http://lkml.kernel.org/r/20120505150142.311126440@linutronix.de
Diffstat (limited to 'arch/tile/include')
| -rw-r--r-- | arch/tile/include/asm/thread_info.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/tile/include/asm/thread_info.h b/arch/tile/include/asm/thread_info.h index bc4f562bd45..c1cf8a8b051 100644 --- a/arch/tile/include/asm/thread_info.h +++ b/arch/tile/include/asm/thread_info.h | |||
| @@ -77,16 +77,14 @@ struct thread_info { | |||
| 77 | 77 | ||
| 78 | #ifndef __ASSEMBLY__ | 78 | #ifndef __ASSEMBLY__ |
| 79 | 79 | ||
| 80 | void arch_release_thread_info(struct thread_info *info); | ||
| 81 | |||
| 80 | /* How to get the thread information struct from C. */ | 82 | /* How to get the thread information struct from C. */ |
| 81 | register unsigned long stack_pointer __asm__("sp"); | 83 | register unsigned long stack_pointer __asm__("sp"); |
| 82 | 84 | ||
| 83 | #define current_thread_info() \ | 85 | #define current_thread_info() \ |
| 84 | ((struct thread_info *)(stack_pointer & -THREAD_SIZE)) | 86 | ((struct thread_info *)(stack_pointer & -THREAD_SIZE)) |
| 85 | 87 | ||
| 86 | #define __HAVE_ARCH_THREAD_INFO_ALLOCATOR | ||
| 87 | extern struct thread_info *alloc_thread_info_node(struct task_struct *task, int node); | ||
| 88 | extern void free_thread_info(struct thread_info *info); | ||
| 89 | |||
| 90 | /* Sit on a nap instruction until interrupted. */ | 88 | /* Sit on a nap instruction until interrupted. */ |
| 91 | extern void smp_nap(void); | 89 | extern void smp_nap(void); |
| 92 | 90 | ||
