diff options
author | Roman Zippel <zippel@linux-m68k.org> | 2006-03-26 04:38:12 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-26 11:57:03 -0500 |
commit | 05cfb614ddbf3181540ce09d44d96486f8ba8d6a (patch) | |
tree | aafed98638557a4643141d906fbb2406f0764a94 /kernel/fork.c | |
parent | df869b630d9d9131c10cf073fb61646048874b2f (diff) |
[PATCH] hrtimers: remove data field
The nanosleep cleanup allows to remove the data field of hrtimer. The
callback function can use container_of() to get it's own data. Since the
hrtimer structure is anyway embedded in other structures, this adds no
overhead.
Signed-off-by: Roman Zippel <zippel@linux-m68k.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel/fork.c')
-rw-r--r-- | kernel/fork.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index a02063903aaa..4bd6486aa67d 100644 --- a/kernel/fork.c +++ b/kernel/fork.c | |||
@@ -848,7 +848,7 @@ static inline int copy_signal(unsigned long clone_flags, struct task_struct * ts | |||
848 | hrtimer_init(&sig->real_timer, CLOCK_MONOTONIC, HRTIMER_REL); | 848 | hrtimer_init(&sig->real_timer, CLOCK_MONOTONIC, HRTIMER_REL); |
849 | sig->it_real_incr.tv64 = 0; | 849 | sig->it_real_incr.tv64 = 0; |
850 | sig->real_timer.function = it_real_fn; | 850 | sig->real_timer.function = it_real_fn; |
851 | sig->real_timer.data = tsk; | 851 | sig->tsk = tsk; |
852 | 852 | ||
853 | sig->it_virt_expires = cputime_zero; | 853 | sig->it_virt_expires = cputime_zero; |
854 | sig->it_virt_incr = cputime_zero; | 854 | sig->it_virt_incr = cputime_zero; |