Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 90989
b: refs/heads/master
c: 2adee9b
h: refs/heads/master
i:
  90987: 409a623
v: v3
  • Loading branch information
Suresh Siddha authored and Ingo Molnar committed Apr 19, 2008
1 parent e96a2f9 commit 0d163c7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1679f2710ac58df580d3716fab1f42ae50a226eb
refs/heads/master: 2adee9b30d1382fba97825b9c50e4f50a0117c36
1 change: 1 addition & 0 deletions trunk/include/asm-x86/thread_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
extern void arch_task_cache_init(void);
extern void free_thread_info(struct thread_info *ti);
extern int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src);
#define arch_task_cache_init arch_task_cache_init
#endif
#endif /* _ASM_X86_THREAD_INFO_H */
10 changes: 7 additions & 3 deletions trunk/kernel/fork.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,13 @@ void __put_task_struct(struct task_struct *tsk)
free_task(tsk);
}

void __attribute__((weak)) arch_task_cache_init(void)
{
}
/*
* macro override instead of weak attribute alias, to workaround
* gcc 4.1.0 and 4.1.1 bugs with weak attribute and empty functions.
*/
#ifndef arch_task_cache_init
#define arch_task_cache_init()
#endif

void __init fork_init(unsigned long mempages)
{
Expand Down

0 comments on commit 0d163c7

Please sign in to comment.