summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 96c9511)
raw | patch | inline | side by side (parent: 96c9511)
author | Thomas Gleixner <tglx@linutronix.de> | |
Sat, 5 May 2012 15:05:45 +0000 (15:05 +0000) | ||
committer | Thomas Gleixner <tglx@linutronix.de> | |
Tue, 8 May 2012 12:08:45 +0000 (14:08 +0200) |
Let the core code allocate and handle the kgdb cleanup with the
arch_release_thread_info() function.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: David Howells <dhowells@redhat.com>
Link: http://lkml.kernel.org/r/20120505150141.996582377@linutronix.de
arch_release_thread_info() function.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: David Howells <dhowells@redhat.com>
Link: http://lkml.kernel.org/r/20120505150141.996582377@linutronix.de
arch/mn10300/include/asm/thread_info.h | patch | blob | history | |
arch/mn10300/kernel/kgdb.c | patch | blob | history |
index 28cf52100baaa0e0cd581cbda0969b00a51b4c4f..08251d6f6b11015b5d8d265cba4fe88fc70e0f1c 100644 (file)
#ifdef CONFIG_4KSTACKS
#define THREAD_SIZE (4096)
+#define THREAD_SIZE_ORDER (0)
#else
#define THREAD_SIZE (8192)
+#define THREAD_SIZE_ORDER (1)
#endif
#define STACK_WARN (THREAD_SIZE / 8)
return sp;
}
-#define __HAVE_ARCH_THREAD_INFO_ALLOCATOR
-
-/* thread information allocation */
-#ifdef CONFIG_DEBUG_STACK_USAGE
-#define alloc_thread_info_node(tsk, node) \
- kzalloc_node(THREAD_SIZE, GFP_KERNEL, node)
-#else
-#define alloc_thread_info_node(tsk, node) \
- kmalloc_node(THREAD_SIZE, GFP_KERNEL, node)
-#endif
-
#ifndef CONFIG_KGDB
-#define free_thread_info(ti) kfree((ti))
-#else
-extern void free_thread_info(struct thread_info *);
+void arch_release_thread_info(struct thread_info *ti)
#endif
#define get_thread_info(ti) get_task_struct((ti)->task)
#define put_thread_info(ti) put_task_struct((ti)->task)
index f6c981db2a36c47f2713670b14f50f669b28c0aa..99770823451a7e8b1fc2552c948e8f651951e334 100644 (file)
* single-step state is cleared. At this point the breakpoints should have
* been removed by __switch_to().
*/
-void free_thread_info(struct thread_info *ti)
+void arch_release_thread_info(struct thread_info *ti)
{
if (kgdb_sstep_thread == ti) {
kgdb_sstep_thread = NULL;
* so force immediate reentry */
kgdb_breakpoint();
}
- kfree(ti);
}
/*