Hi,
This is the final patch to remove the thread_info field.
It probably shouldn't be applied until the previous one is dealt with and
is mostly merged.
bye, Roman
---
include/linux/init_task.h | 1 -
include/linux/sched.h | 1 -
kernel/fork.c | 1 -
3 files changed, 3 deletions(-)
Index: linux-2.6-mm/include/linux/sched.h
===================================================================
--- linux-2.6-mm.orig/include/linux/sched.h 2005-05-31 01:20:37.374145520 +0200
+++ linux-2.6-mm/include/linux/sched.h 2005-05-31 01:20:41.599419704 +0200
@@ -616,7 +616,6 @@ struct mempolicy;
struct task_struct {
volatile long state; /* -1 unrunnable, 0 runnable, >0 stopped */
- struct thread_info *thread_info;
void *stack;
atomic_t usage;
unsigned long flags; /* per process flags, defined below */
Index: linux-2.6-mm/include/linux/init_task.h
===================================================================
--- linux-2.6-mm.orig/include/linux/init_task.h 2005-05-31 01:19:05.913856451 +0200
+++ linux-2.6-mm/include/linux/init_task.h 2005-05-31 01:20:41.599419704 +0200
@@ -70,7 +70,6 @@ extern struct group_info init_groups;
#define INIT_TASK(tsk) \
{ \
.state = 0, \
- .thread_info = &init_thread_info, \
.stack = &init_stack, \
.usage = ATOMIC_INIT(2), \
.flags = 0, \
Index: linux-2.6-mm/kernel/fork.c
===================================================================
--- linux-2.6-mm.orig/kernel/fork.c 2005-05-31 01:20:29.560487745 +0200
+++ linux-2.6-mm/kernel/fork.c 2005-05-31 01:20:41.600419532 +0200
@@ -172,7 +172,6 @@ static struct task_struct *dup_task_stru
*tsk = *orig;
tsk->stack = stack;
- tsk->thread_info = stack;
setup_thread_stack(tsk, orig);
/* One for us, one for whoever does the "release_task()" (usually parent) */
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]