diff options
Diffstat (limited to 'arch/powerpc/kernel/process.c')
| -rw-r--r-- | arch/powerpc/kernel/process.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c index 4937c969009..aa05935b694 100644 --- a/arch/powerpc/kernel/process.c +++ b/arch/powerpc/kernel/process.c | |||
| @@ -1252,37 +1252,6 @@ void __ppc64_runlatch_off(void) | |||
| 1252 | } | 1252 | } |
| 1253 | #endif /* CONFIG_PPC64 */ | 1253 | #endif /* CONFIG_PPC64 */ |
| 1254 | 1254 | ||
| 1255 | #if THREAD_SHIFT < PAGE_SHIFT | ||
| 1256 | |||
| 1257 | static struct kmem_cache *thread_info_cache; | ||
| 1258 | |||
| 1259 | struct thread_info *alloc_thread_info_node(struct task_struct *tsk, int node) | ||
| 1260 | { | ||
| 1261 | struct thread_info *ti; | ||
| 1262 | |||
| 1263 | ti = kmem_cache_alloc_node(thread_info_cache, GFP_KERNEL, node); | ||
| 1264 | if (unlikely(ti == NULL)) | ||
| 1265 | return NULL; | ||
| 1266 | #ifdef CONFIG_DEBUG_STACK_USAGE | ||
| 1267 | memset(ti, 0, THREAD_SIZE); | ||
| 1268 | #endif | ||
| 1269 | return ti; | ||
| 1270 | } | ||
| 1271 | |||
| 1272 | void free_thread_info(struct thread_info *ti) | ||
| 1273 | { | ||
| 1274 | kmem_cache_free(thread_info_cache, ti); | ||
| 1275 | } | ||
| 1276 | |||
| 1277 | void thread_info_cache_init(void) | ||
| 1278 | { | ||
| 1279 | thread_info_cache = kmem_cache_create("thread_info", THREAD_SIZE, | ||
| 1280 | THREAD_SIZE, 0, NULL); | ||
| 1281 | BUG_ON(thread_info_cache == NULL); | ||
| 1282 | } | ||
| 1283 | |||
| 1284 | #endif /* THREAD_SHIFT < PAGE_SHIFT */ | ||
| 1285 | |||
| 1286 | unsigned long arch_align_stack(unsigned long sp) | 1255 | unsigned long arch_align_stack(unsigned long sp) |
| 1287 | { | 1256 | { |
| 1288 | if (!(current->personality & ADDR_NO_RANDOMIZE) && randomize_va_space) | 1257 | if (!(current->personality & ADDR_NO_RANDOMIZE) && randomize_va_space) |
