projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0437e10
)
sched: uninline set_task_cpu()
author
Ingo Molnar
<mingo@elte.hu>
Mon, 9 Jul 2007 16:51:58 +0000
(18:51 +0200)
committer
Ingo Molnar
<mingo@elte.hu>
Mon, 9 Jul 2007 16:51:58 +0000
(18:51 +0200)
uninline set_task_cpu(): CFS will add more code to it.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/sched.h
patch
|
blob
|
history
kernel/sched.c
patch
|
blob
|
history
diff --git
a/include/linux/sched.h
b/include/linux/sched.h
index 8764cda0feca036356213e4ecb36e3c449805374..4b912e753ca0a51138e1fbe2c3e05c4afc97cad5 100644
(file)
--- a/
include/linux/sched.h
+++ b/
include/linux/sched.h
@@
-1633,10
+1633,7
@@
static inline unsigned int task_cpu(const struct task_struct *p)
return task_thread_info(p)->cpu;
}
-static inline void set_task_cpu(struct task_struct *p, unsigned int cpu)
-{
- task_thread_info(p)->cpu = cpu;
-}
+extern void set_task_cpu(struct task_struct *p, unsigned int cpu);
#else
diff --git
a/kernel/sched.c
b/kernel/sched.c
index 46b23f0fee24fb73db6d7c6e0397f6e77049822b..d6624978feb257085734ce716a53e107ddbb5aea 100644
(file)
--- a/
kernel/sched.c
+++ b/
kernel/sched.c
@@
-1111,6
+1111,12
@@
unsigned long weighted_cpuload(const int cpu)
}
#ifdef CONFIG_SMP
+
+void set_task_cpu(struct task_struct *p, unsigned int cpu)
+{
+ task_thread_info(p)->cpu = cpu;
+}
+
struct migration_req {
struct list_head list;